|
|
@ -415,6 +415,9 @@ public class WorkflowExecuteThread { |
|
|
|
iTaskProcessor.action(TaskAction.RUN); |
|
|
|
iTaskProcessor.action(TaskAction.RUN); |
|
|
|
|
|
|
|
|
|
|
|
if (iTaskProcessor.taskInstance().getState().typeIsFinished()) { |
|
|
|
if (iTaskProcessor.taskInstance().getState().typeIsFinished()) { |
|
|
|
|
|
|
|
if (iTaskProcessor.taskInstance().getState() != task.getState()) { |
|
|
|
|
|
|
|
task.setState(iTaskProcessor.taskInstance().getState()); |
|
|
|
|
|
|
|
} |
|
|
|
taskFinished(task); |
|
|
|
taskFinished(task); |
|
|
|
} |
|
|
|
} |
|
|
|
return true; |
|
|
|
return true; |
|
|
@ -455,7 +458,10 @@ public class WorkflowExecuteThread { |
|
|
|
killAllTasks(); |
|
|
|
killAllTasks(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else if (taskInstance.getState().typeIsFinished()) { |
|
|
|
|
|
|
|
completeTaskMap.put(taskInstance.getTaskCode(), taskInstance.getId()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.updateProcessInstanceState(); |
|
|
|
this.updateProcessInstanceState(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|