[BUG][Master] process cannot finish and its status is always running (#6886)

* fix 6882: process cannot finish and its status is always running

* fix 6882: process cannot finish and its status is always running
This commit is contained in:
OS 2021-11-17 17:39:22 +08:00 committed by lenboo
parent 4015448441
commit 652b9230a7
1 changed files with 2 additions and 1 deletions

View File

@ -187,12 +187,13 @@ public class EventExecuteService extends Thread {
StateEventChangeCommand stateEventChangeCommand = new StateEventChangeCommand(
processInstanceId, 0, workflowExecuteThread.getProcessInstance().getState(), processInstance.getId(), taskInstance.getId()
);
stateEventCallbackService.sendResult(address, port, stateEventChangeCommand.convert2Command());
}
@Override
public void onFailure(Throwable throwable) {
logger.info("handle events {} failed.", processInstanceId);
logger.info("handle events failed.", throwable);
}
};
Futures.addCallback(future, futureCallback, this.listeningExecutorService);