[jboss-user] [JBoss jBPM] - Re: Stack overflow on recursive patten.
jemodurn
do-not-reply at jboss.com
Wed Sep 19 14:16:10 EDT 2007
Thank you for your reply.
Can I achieve my looping in the client code like this:
First change my process to include a wait-state:
<process-definition name="emailLoop" >
| <start-state name="start">
| <transition to="CheckEmail" />
| </start-state>
|
| <node name="CheckEmail">
| <action class="CheckEmailAction" />
| <transition to="SendEmail" />
| </node>
|
| <state name="SendEmail">
| <action class="SendEmailAction" />
| <transition to="CheckEmail" />
| <transition to="finish" />
| </state>
|
| <end-state name="finish"/>
| </process-definition>
Then in my client code I will do my loop:
...
| while(processInstance.hasEnded() == false) {
| processInstance.signal("CheckEmail");
| }
| ...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086274#4086274
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086274
More information about the jboss-user
mailing list