Browse Source

update

pull/2/head
baoliang 6 years ago
parent
commit
501795a5a7
  1. 2
      escheduler-api/src/main/java/cn/escheduler/api/service/ProcessDefinitionService.java

2
escheduler-api/src/main/java/cn/escheduler/api/service/ProcessDefinitionService.java

@ -295,7 +295,7 @@ public class ProcessDefinitionService extends BaseDAGService {
//custom global params //custom global params
List<Property> globalParamsList = new ArrayList<>(); List<Property> globalParamsList = new ArrayList<>();
if (processData.getGlobalParams() != null && processData.getGlobalParams().size() > 0) { if (processData.getGlobalParams() != null && processData.getGlobalParams().size() > 0) {
Set<Property> userDefParamsSet = new HashSet<>(globalParamsList); Set<Property> userDefParamsSet = new HashSet<>(processData.getGlobalParams());
globalParamsList = new ArrayList<>(userDefParamsSet); globalParamsList = new ArrayList<>(userDefParamsSet);
} }
processDefine.setGlobalParamList(globalParamsList); processDefine.setGlobalParamList(globalParamsList);

Loading…
Cancel
Save