未验证 提交 74afdcf8 编写于 作者: X xiangzihao 提交者: GitHub

[Fix-8506][Master] process instance stop result wrong (#8529)

* fix bug_8506

* recover success state
上级 3cfb3270
......@@ -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();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册