Fix the complement function does not generate the next running instances in parallel mode (#14335)

(cherry picked from commit 75f4fa2881)
This commit is contained in:
Kerwin 2023-06-12 19:40:26 +08:00 committed by Jay Chung
parent 682e881ea7
commit 57f3c89dd2
1 changed files with 2 additions and 1 deletions

View File

@ -732,8 +732,9 @@ public class WorkflowExecuteRunnable implements Callable<WorkflowSubmitStatus> {
command.setProcessInstanceId(0);
command.setProcessDefinitionVersion(processInstance.getProcessDefinitionVersion());
command.setTestFlag(processInstance.getTestFlag());
int create = commandService.createCommand(command);
processService.saveCommandTrigger(command.getId(), processInstance.getId());
return commandService.createCommand(command);
return create;
}
private boolean needComplementProcess() {