|
|
@ -134,7 +134,7 @@ public class TaskResponseService { |
|
|
|
case ACK: |
|
|
|
case ACK: |
|
|
|
try { |
|
|
|
try { |
|
|
|
TaskInstance taskInstance = processService.findTaskInstanceById(taskResponseEvent.getTaskInstanceId()); |
|
|
|
TaskInstance taskInstance = processService.findTaskInstanceById(taskResponseEvent.getTaskInstanceId()); |
|
|
|
if (taskInstance != null){ |
|
|
|
if (taskInstance != null && !taskInstance.getState().typeIsFinished()) { |
|
|
|
processService.changeTaskState(taskResponseEvent.getState(), |
|
|
|
processService.changeTaskState(taskResponseEvent.getState(), |
|
|
|
taskResponseEvent.getStartTime(), |
|
|
|
taskResponseEvent.getStartTime(), |
|
|
|
taskResponseEvent.getWorkerAddress(), |
|
|
|
taskResponseEvent.getWorkerAddress(), |
|
|
|