I did some example code.
Parent Process ************** | <?xml version="1.0" encoding="UTF-8"?> | | <process-definition name="mainProcess"> | | <!-- SWIMLANES (= process roles) --> | | <swimlane name="customer" > | <assignment expression="user(customer)" /> | </swimlane> | | <swimlane name="operator1"> | <assignment expression="user(bert)" /> | </swimlane> | <!-- NODES --> | <start-state name="MainProcessStart"> | <task swimlane="customer"> | <controller> | <variable name="Account Id" access="write"></variable> | <variable name="Name" access="write"></variable> | </controller> | </task> | <transition name="tr1" to="Mainstate1"></transition> | </start-state> | | <end-state name="Mainend" /> | | <state name="Mainstate1"> | <task swimlane="operator1"> | <controller> | <variable name="Account Id" access="write"></variable> | <variable name="Name" access="write"></variable> | <variable name="Addresss" access="write"></variable> | </controller> | </task> | <transition name="tr1" to="Parent Process"></transition> | </state> | | <process-state name="Parent Process"> | <sub-process name = "subProcess"/> | <variable name="Account Id" access="write" mapped-name="Account Id"></variable> | <variable name="Name" access="write" mapped-name="Name"></variable> | <transition name="tr1" to="Mainstate2"></transition> | </process-state> | | <state name="Mainstate2"> | <transition name="tr1" to="Mainend"></transition> | </state> | | </process-definition> | sub Process *********** | <?xml version="1.0" encoding="UTF-8"?> | | <process-definition name="subProcess"> | | <!-- SWIMLANES (= process roles) --> | | <swimlane name="customer" > | <assignment expression="user(customer)" /> | </swimlane> | | <swimlane name="operator1"> | <assignment expression="user(james)" /> | </swimlane> | <!-- NODES --> | | <start-state name="Start"> | <task swimlane="customer"> | <controller> | <variable name="Account Id" access="write"></variable> | <variable name="Name" access="write"></variable> | </controller> | </task> | <transition name="tr1" to="state1"></transition> | </start-state> | | <end-state name="end" /> | <state name="state1"> | <task swimlane="operator1"> | <controller> | <variable name="Account Id" access="write"></variable> | <variable name="Name" access="write"></variable> | <variable name="Addresss" access="write"></variable> | </controller> | </task> | <transition name="tr1" to="state2"></transition> | </state> | <state name="state2"> | <transition name="tr1" to="end"></transition> | </state> | | </process-definition> | After deploying the both par in mysql and i experiment in JBPM application i am able to see the MainProcessStart Task, when i click that task and enter two fields value and click SaveAndClose. After that it's not coming in "Mainstate1" what is wrong. if i removed process-state it is working. Any Idea please. Thanks & Regards Srikanth [/img] View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913705#3913705 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913705 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
