[jboss-user] [jBPM] - Re: How to setup Event to stop current execution & "jump" to that node?

Chris Melas do-not-reply at jboss.com
Wed Oct 19 03:56:08 EDT 2011


Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: How to setup Event to stop current execution & "jump" to that node?"

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

--------------------------------------------------------------
Hi,
You can simply add some variables to the process (unless you have some facts in your knowledge session that you can access within the process) and initialise them according to the state you are in, then use exclusive gateways by checking their values and acting accordingly.

For example in your case add a boolean variable to your process i.e. emailWorkDone, with initial value false. Then if the 2nd path is started and completed based on your business logic then you can make the variable true and by adding a gateway between each timer and sendemail you can decide whether to send another email, by checking the variable, or go to the human task or something else....
--------------------------------------------------------------

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

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/20111019/1c444664/attachment.html 


More information about the jboss-user mailing list