i modifed the websale process as follow ,and deploy successfully ,but when i
start the process ,all the AssignmentHandlers seems haven't been invoked , the
actorid in swimlaneInstance table and in taskinstance table are all
"null".what's the problem?
<?xml version="1.0" encoding="UTF-8"?>
| <process-definition name="websale2006">
| <!-- SWIMLANES (= process roles) -->
| <swimlane name="buyer">
| <assignment class='cims.wfs.websale.actions.buyerAssignmentHandler'/>
| </swimlane>
| <swimlane name="salesman">
| <assignment class='cims.wfs.websale.actions.salesmanAssignmentHandler'/>
| </swimlane>
| <swimlane name="accountant">
| <assignment
class='cims.wfs.websale.actions.accountantAssignmentHandler'/>
| </swimlane>
| <swimlane name="shipper">
| <assignment class='cims.wfs.websale.actions.shipperAssignmentHandler'/>
| </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">
| <swimlane>salesman</swimlane>
| </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">
| <swimlane>shipper</swimlane>
| <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=3931256#3931256
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931256
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user