Skip to content

Commit

Permalink
[FIX-#4084][server]cherry pick from dev to fix taskInstance state cha…
Browse files Browse the repository at this point in the history
…nge error (#4171)

Co-authored-by: CalvinKirs <acm_master@163.com>
  • Loading branch information
lgcareer and CalvinKirs authored Dec 8, 2020
1 parent d53991e commit 6d3293c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private void persist(TaskResponseEvent taskResponseEvent){
case ACK:
try {
TaskInstance taskInstance = processService.findTaskInstanceById(taskResponseEvent.getTaskInstanceId());
if (taskInstance != null){
if (taskInstance != null && !taskInstance.getState().typeIsFinished()) {
processService.changeTaskState(taskResponseEvent.getState(),
taskResponseEvent.getStartTime(),
taskResponseEvent.getWorkerAddress(),
Expand Down

0 comments on commit 6d3293c

Please sign in to comment.