[jboss-user] [jBPM] - Re: Getting the current state in a process and printing out as String
Demian Calcaprina
do-not-reply at jboss.com
Mon Jul 11 19:28:12 EDT 2011
Demian Calcaprina [http://community.jboss.org/people/calca] created the discussion
"Re: Getting the current state in a process and printing out as String"
To view the discussion, visit: http://community.jboss.org/message/614552#614552
--------------------------------------------------------------
With this you can get the state:
WorkflowProcessInstance pi = (WorkflowProcessInstance)ksession.getProcessInstance(pid);
And states are:
int STATE_PENDING = 0;
int STATE_ACTIVE = 1;
int STATE_COMPLETED = 2;
int STATE_ABORTED = 3;
int STATE_SUSPENDED = 4;
I don't know if there is any method that makes that, but you can code it easily with this information.
Hope it helps,
Demian
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/614552#614552]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110711/f7a5da2a/attachment.html
More information about the jboss-user
mailing list