|
|
@ -203,7 +203,6 @@ public class PythonGateway { |
|
|
|
* and if would always fresh exists schedule if not null |
|
|
|
* and if would always fresh exists schedule if not null |
|
|
|
* @param warningType warning type |
|
|
|
* @param warningType warning type |
|
|
|
* @param warningGroupId warning group id |
|
|
|
* @param warningGroupId warning group id |
|
|
|
* @param locations locations json object about all tasks |
|
|
|
|
|
|
|
* @param timeout timeout for process definition working, if running time longer than timeout, |
|
|
|
* @param timeout timeout for process definition working, if running time longer than timeout, |
|
|
|
* task will mark as fail |
|
|
|
* task will mark as fail |
|
|
|
* @param workerGroup run task in which worker group |
|
|
|
* @param workerGroup run task in which worker group |
|
|
@ -221,7 +220,6 @@ public class PythonGateway { |
|
|
|
String schedule, |
|
|
|
String schedule, |
|
|
|
String warningType, |
|
|
|
String warningType, |
|
|
|
int warningGroupId, |
|
|
|
int warningGroupId, |
|
|
|
String locations, |
|
|
|
|
|
|
|
int timeout, |
|
|
|
int timeout, |
|
|
|
String workerGroup, |
|
|
|
String workerGroup, |
|
|
|
String tenantCode, |
|
|
|
String tenantCode, |
|
|
@ -242,10 +240,10 @@ public class PythonGateway { |
|
|
|
// make sure process definition offline which could edit
|
|
|
|
// make sure process definition offline which could edit
|
|
|
|
processDefinitionService.releaseProcessDefinition(user, projectCode, processDefinitionCode, ReleaseState.OFFLINE); |
|
|
|
processDefinitionService.releaseProcessDefinition(user, projectCode, processDefinitionCode, ReleaseState.OFFLINE); |
|
|
|
Map<String, Object> result = processDefinitionService.updateProcessDefinition(user, projectCode, name, processDefinitionCode, description, globalParams, |
|
|
|
Map<String, Object> result = processDefinitionService.updateProcessDefinition(user, projectCode, name, processDefinitionCode, description, globalParams, |
|
|
|
locations, timeout, tenantCode, taskRelationJson, taskDefinitionJson, otherParamsJson, executionType); |
|
|
|
null, timeout, tenantCode, taskRelationJson, taskDefinitionJson, otherParamsJson, executionType); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
Map<String, Object> result = processDefinitionService.createProcessDefinition(user, projectCode, name, description, globalParams, |
|
|
|
Map<String, Object> result = processDefinitionService.createProcessDefinition(user, projectCode, name, description, globalParams, |
|
|
|
locations, timeout, tenantCode, taskRelationJson, taskDefinitionJson, otherParamsJson, executionType); |
|
|
|
null, timeout, tenantCode, taskRelationJson, taskDefinitionJson, otherParamsJson, executionType); |
|
|
|
processDefinition = (ProcessDefinition) result.get(Constants.DATA_LIST); |
|
|
|
processDefinition = (ProcessDefinition) result.get(Constants.DATA_LIST); |
|
|
|
processDefinitionCode = processDefinition.getCode(); |
|
|
|
processDefinitionCode = processDefinition.getCode(); |
|
|
|
} |
|
|
|
} |
|
|
|