Here is the code: <?xml version="1.0"?> | | <process-definition name="websale" | xmlns="urn:jbpm.org:jpdl-3.1"> | | <!-- SWIMLANES (= process roles) --> | | <swimlane name="buyer" /> | | <swimlane name="salesman"> | <assignment expression="user(ernie)" /> | </swimlane> | | <swimlane name="accountant"> | <assignment expression="user(bert)" /> | </swimlane> | | <swimlane name="shipper"> | <assignment expression="user(grover)" /> | </swimlane> | | <!-- NODES --> | | <start-state name="create new web sale order"> | <task swimlane="buyer"> | <controller> | <variable name="item"/> | <variable name="quantity"/> | <variable name="address"/> | </controller> | </task> | <transition to="evaluate web order" /> | </start-state> | | <task-node name="evaluate web order"> | <task swimlane="salesman"> | <timer duedate="20 seconds" repeat="10 seconds"> | <action class="org.jbpm.websale.RemindActor"> | <swimlaneName>salesman</swimlaneName> | </action> | </timer> | <controller> | <variable name="item" access="read"/> | <variable name="quantity" access="read"/> | <variable name="address" access="read"/> | <variable name="comment"/> | </controller> | </task> | <transition name="ok" to="salefork" /> | <transition name="more info needed" to="fix web order data" /> | </task-node> | | <task-node name="fix web order data"> | <task swimlane="buyer"> | <controller> | <variable name="comment" access="read"/> | <variable name="item" /> | <variable name="quantity" /> | <variable name="address" /> | </controller> | </task> | <transition to="evaluate web order" /> | </task-node> | | <fork name="salefork"> | <transition name="payment" to="wait for money" /> | <transition name="shipping" to="ship item" /> | </fork> | | <task-node name="wait for money"> | <task swimlane="accountant"> | <controller> | <variable name="item" access="read" /> | <variable name="quantity" access="read" /> | <variable name="address" access="read" /> | <variable name="money received" /> | </controller> | </task> | <transition to="update books" /> | </task-node> | | <node name="update books"> | <action class="org.jbpm.websale.UpdateBooks"> | <msg>accountancy application is now informed of the payment</msg> | </action> | <transition to="salejoin" /> | </node> | | <node name="ship item"> | <action class="org.jbpm.websale.ShipItem"> | <swimlaneName>shipper</swimlaneName> | <msg>${shipper} now ships ${item} to ${address}</msg> | </action> | <transition to="salejoin" /> | </node> | | <join name="salejoin"> | <transition to="end" /> | </join> | | <end-state name="end" /> | | </process-definition>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925816#3925816 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925816 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user