Hi guys,
I have a little problem. There is a very simple single-path process definition finished with End Event (Terminate End Event).
My code fragment:
tasks = taskService.createTaskQuery()
.processInstanceId(processInstance.getId())
.list();
logger.info("Tasks: " + tasks.size());
logger.info("Is ended: " + processInstance.isEnded());
Output:
c.processRuntime.SimpleProcessRuntime : Tasks: 0
c.processRuntime.SimpleProcessRuntime : Is ended: false
I think I’ve finished all tasks associated with the process instance. The problem is that the process is not ended. What can be wrong?
Thanks.