[jboss-user] [jBPM] New message: "Re: [jBPm 4.1] - How to find a exeuction is ended or not"
Maciej Swiderski
do-not-reply at jboss.com
Wed Mar 10 03:08:41 EST 2010
User development,
A new message was posted in the thread "[jBPm 4.1] - How to find a exeuction is ended or not":
http://community.jboss.org/message/530965#530965
Author : Maciej Swiderski
Profile : http://community.jboss.org/people/swiderski.maciej
Message:
--------------------------------------------------------------
You could use HistoryProcessInstanceQuery to get such information.
historyService.createHistoryProcessInstanceQuery().processInstanceId().
state(HistoryProcessInstance.STATE_ENDED).uniqueResult();
If that will return any result this will mean your process instance is finished.
You can try different configuration for HistoryProcessInstanceQuery as well if above example does not suit your needs.
HTH
Maciej
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530965#530965
More information about the jboss-user
mailing list