03-26-2013 02:23 PM
03-26-2013 06:38 PM
03-26-2013 06:52 PM
I you reload, or try to reload, the processinstance from the database before doing the last isEnded() you'll see that that it is not there anymore.
Yes, this is kind of confusing, but there is no guarantee that the process is ended in the same thread, so the behaviour you see is 'nomal' but indeed kind of illogical in a sense
03-26-2013 09:25 PM
I you reload, or try to reload, the processinstance from the database before doing the last isEnded() you'll see that that it is not there anymore.
Yes, this is kind of confusing, but there is no guarantee that the process is ended in the same thread, so the behaviour you see is 'nomal' but indeed kind of illogical in a sense
To make sure I understand:
If I attempt to load the completed process instance via RuntimeService.createProcessInstanceQuery(), I will be unable to find it because it's been removed from the current process instances & into historical (assuming historical is turned on)?
The absence of that process instance is an indication that it has completed.
Is an historical query the only way via the API to determine how that process instance completed?
Under what conditions does isEnded() return the correct answer?
03-27-2013 08:32 AM
03-27-2013 11:26 AM
03-28-2013 05:00 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.