|
|
@ -939,7 +939,7 @@ public class ProcessServiceImpl implements ProcessService { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (cmdParam != null) { |
|
|
|
|
|
|
|
CommandType commandTypeIfComplement = getCommandTypeIfComplement(processInstance, command); |
|
|
|
CommandType commandTypeIfComplement = getCommandTypeIfComplement(processInstance, command); |
|
|
|
// reset global params while repeat running and recover tolerance fault process is needed by cmdParam
|
|
|
|
// reset global params while repeat running and recover tolerance fault process is needed by cmdParam
|
|
|
|
if (commandTypeIfComplement == CommandType.REPEAT_RUNNING || |
|
|
|
if (commandTypeIfComplement == CommandType.REPEAT_RUNNING || |
|
|
@ -958,13 +958,14 @@ public class ProcessServiceImpl implements ProcessService { |
|
|
|
processInstance.getScheduleTime(), timezoneId); |
|
|
|
processInstance.getScheduleTime(), timezoneId); |
|
|
|
processInstance.setGlobalParams(globalParams); |
|
|
|
processInstance.setGlobalParams(globalParams); |
|
|
|
processInstance.setProcessDefinition(processDefinition); |
|
|
|
processInstance.setProcessDefinition(processDefinition); |
|
|
|
} |
|
|
|
|
|
|
|
// reset command parameter
|
|
|
|
// reset command parameter
|
|
|
|
if (processInstance.getCommandParam() != null) { |
|
|
|
if (processInstance.getCommandParam() != null) { |
|
|
|
Map<String, String> processCmdParam = JSONUtils.toMap(processInstance.getCommandParam()); |
|
|
|
Map<String, String> processCmdParam = JSONUtils.toMap(processInstance.getCommandParam()); |
|
|
|
|
|
|
|
Map<String, String> finalCmdParam = cmdParam; |
|
|
|
processCmdParam.forEach((key, value) -> { |
|
|
|
processCmdParam.forEach((key, value) -> { |
|
|
|
if (!cmdParam.containsKey(key)) { |
|
|
|
if (!finalCmdParam.containsKey(key)) { |
|
|
|
cmdParam.put(key, value); |
|
|
|
finalCmdParam.put(key, value); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|