I'm learning Activiti & had a question about determining whether or not a process has ended.
I have a unit tests that runs thru the tasks in a process. It then calls ProcessInstance.isEnded() which returns false seeming to indicate that the process instance has not completed.
But if I perform a historical process instance query, that process has an end time.
Is this expected behavior? It seems confusing.