[jboss-user] [JBoss jBPM] - Re: How to model a loop with GPD?

RomeuFigueira do-not-reply at jboss.com
Thu Feb 1 08:36:31 EST 2007

To put it in a programatic way:

Let's say you have a 4 state cenario:
1 - Start State
2 - State A
3 - State B
4 - End State

The following transitions exist:
1 to 2
2 to 3
*2 to 4
3 to 2

The "2 to 4" transition should never been taken, therefore making a 2-3-2 loop for ever.

You could force this through an ActionHandler (check docs if you don't know what it is).
by forcing the "2 to 3" transition
context.leaveNode("2 to 3");

You could also hard code your transistions in the JPDL (xml source of the process) by placing conditions on the transactions (again see docs for this).

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

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

More information about the jboss-user mailing list