[Fix-8506][Master] process instance stop result wrong (#8529)
* fix bug_8506 * recover success stateslim
parent
3cfb3270fe
commit
74afdcf8f3
|
|
@ -415,6 +415,9 @@ public class WorkflowExecuteThread {
|
|||
iTaskProcessor.action(TaskAction.RUN);
|
||||
|
||||
if (iTaskProcessor.taskInstance().getState().typeIsFinished()) {
|
||||
if (iTaskProcessor.taskInstance().getState() != task.getState()) {
|
||||
task.setState(iTaskProcessor.taskInstance().getState());
|
||||
}
|
||||
taskFinished(task);
|
||||
}
|
||||
return true;
|
||||
|
|
@ -455,7 +458,10 @@ public class WorkflowExecuteThread {
|
|||
killAllTasks();
|
||||
}
|
||||
}
|
||||
} else if (taskInstance.getState().typeIsFinished()) {
|
||||
completeTaskMap.put(taskInstance.getTaskCode(), taskInstance.getId());
|
||||
}
|
||||
|
||||
this.updateProcessInstanceState();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue