[Fix-9975] The selected task instance was recreated when the Master service fail… (#9976)

* The selected task instance was recreated when the Master service failed over.

* Returns the expression result directly.

* Use Recovery to determine whether to use the old task instance.
This commit is contained in:
WangJPLeo 2022-05-12 16:31:53 +08:00 committed by GitHub
parent 00f102959b
commit dbdbfeaeee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1960,6 +1960,9 @@ public class WorkflowExecuteThread {
private boolean isNewProcessInstance() {
if (ExecutionStatus.RUNNING_EXECUTION == processInstance.getState() && processInstance.getRunTimes() == 1) {
return true;
} else if (processInstance.getRecovery().equals(Flag.YES)) {
// host is empty use old task instance
return false;
} else {
return false;
}