|
|
@ -279,10 +279,15 @@ public class ProcessDefinition { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setGlobalParams(String globalParams) { |
|
|
|
public void setGlobalParams(String globalParams) { |
|
|
|
try { |
|
|
|
if (globalParams == null){ |
|
|
|
this.globalParamList = JSONUtils.getMapper().readValue(globalParams, new TypeReference<List<Property>>() {}); |
|
|
|
this.globalParamList = new ArrayList<>(); |
|
|
|
} catch (IOException e) { |
|
|
|
}else { |
|
|
|
logger.error("json parse exception!", e); |
|
|
|
try { |
|
|
|
|
|
|
|
this.globalParamList = JSONUtils.getMapper().readValue(globalParams, new TypeReference<List<Property>>() { |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} catch (IOException e) { |
|
|
|
|
|
|
|
logger.error("json parse exception!", e); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
this.globalParams = globalParams; |
|
|
|
this.globalParams = globalParams; |
|
|
|
} |
|
|
|
} |
|
|
|