[jboss-user] [jBPM] - How can i get the execution pointer in a process?

Maciej Swiderski do-not-reply at jboss.com
Wed Mar 31 02:19:27 EDT 2010


Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] replied to the discussion

"How can i get the execution pointer in a process?"

To view the discussion, visit: http://community.jboss.org/message/534805#534805

--------------------------------------------------------------
Hi,

make sure that if you signal your execution to move forward you need to take the processInstance object that is returned by that method. Otherwise you will work on old reference.
If you are working with tasks you most likely need to run following method after you complete your task:

procesInstance = executionService.findProcessInstanceById(processInstance.getId());


And after that you invoke findActiveActivityNames and you should get correct results.

Cheers,
Maciej

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/534805#534805]

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/20100331/d1d1f1b1/attachment.html 


More information about the jboss-user mailing list