[jboss-user] [JBoss jBPM] - Re: Process Instance end method

cristian_e do-not-reply at jboss.com
Wed Jun 13 16:41:32 EDT 2007


I believe when you end the process instance it's node isn't actually changed by design. It will just show you this "ended" state, but it will stay at it's current node. This is specially helpful in a situation where you have more than just one end state ("to which one should the token go?").

In case you have a complex process design between the start and end state (or at least a series of Task nodes and others) you can send the token to the end state directly changing it's node using the API (Token.setNode). This way you avoid creating all the task instances and stuff that could appear in the way, you just directly point the root token to the desired end node.

Cristian
www.miro.cl

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054121#4054121

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054121



More information about the jboss-user mailing list