|
|
|
@ -118,12 +118,11 @@ public class StateWheelExecuteThread extends Thread {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for (TaskInstance taskInstance : this.taskInstanceRetryCheckList.values()) { |
|
|
|
|
if (taskInstance.taskCanRetry() && taskInstance.retryTaskIntervalOverTime()) { |
|
|
|
|
if (!taskInstance.getState().typeIsFinished() && (taskInstance.isSubProcess() || taskInstance.isDependTask())) { |
|
|
|
|
addTaskStateChangeEvent(taskInstance); |
|
|
|
|
taskInstanceRetryCheckList.remove(taskInstance.getId()); |
|
|
|
|
} |
|
|
|
|
if (taskInstance.isSubProcess() || taskInstance.isDependTask()) { |
|
|
|
|
} else if (taskInstance.taskCanRetry() && taskInstance.retryTaskIntervalOverTime()) { |
|
|
|
|
addTaskStateChangeEvent(taskInstance); |
|
|
|
|
taskInstanceRetryCheckList.remove(taskInstance.getId()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|