Based on the above experimentation, we tried to introduce timers that can pass 
control to next transition once it got triggered.

 It worked fine, but net result was only one process got executed at a time.  
Eventhough here action logic is not clubbed with any timer's event, Why 
schedular not triggered another timer?How it's different from previous 
approach. Please help.

Process definition


  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <process-definition name="egjointest11">
  | 
  |   <!-- SWIMLANES (= process roles) -->
  |   <swimlane name="user1">
  |     <assignment expression="user(praveen)" />
  |   </swimlane>
  |   
  |   <swimlane name="user2">
  |     <assignment expression="user(siddarth)" />
  |   </swimlane>
  | 
  |   <swimlane name="user3">
  |     <assignment expression="user(shaileshraval)" />
  |   </swimlane>
  | 
  |   <swimlane name="user4">
  |     <assignment expression="user(rajeev)" />
  |   </swimlane>
  | 
  |   <!-- NODES -->
  | 
  |   <start-state name="state-1">
  |     <task>
  |       <controller>
  |         <variable name="initiatorname" />
  |         <variable name="fileName" />
  |         <variable name="pathName" />
  |       </controller>
  |     </task>
  |     <transition to="fork1" />
  |   </start-state>
  |   
  |   <fork name="fork1">
  |     <transition name="to state-2" to="state-2" />
  |     <transition name="to state-4" to="state-4" />
  |   </fork>
  | 
  |   <task-node name="state-2">
  |     <task>
  |       <timer name="Timer1" duedate="20 seconds" transition="to state-3" />
  |       <controller>
  |         <variable name="initiatorname" access="read"/>
  |         <variable name="state-2-yourname"/>
  |       </controller>
  |     </task>
  |     <transition name="to state-3" to="state-3" />
  |   </task-node>
  | 
  |   <node name="state-3">
  |     <action class="com.tcs.webapp.demo1.ReadFile">
  |       <msg>Action node Triggered For Reading File state-3</msg>
  |     </action>
  |     <transition name="to join1" to="join1" />
  |   </node>
  | 
  |   <task-node name="state-4">
  |     <task>
  |       <timer name="Timer2" duedate="20 seconds" transition="to state-5" />
  |       <controller>
  |         <variable name="initiatorname" access="read"/>
  |         <variable name="state-4-yourname"/>
  |       </controller>
  |     </task>
  |     <transition name="to state-5" to="state-5" />
  |   </task-node>
  | 
  |   <node name="state-5">
  |     <action class="com.tcs.webapp.demo1.ReadFile">
  |       <msg>Action node Triggered For Reading File state-5</msg>
  |     </action>
  |     <transition name="to join1" to="join1" />
  |   </node>
  | 
  |   <join name="join1">
  |     <transition name="to state-6" to="state-6" />
  |   </join>
  | 
  |   <task-node name="state-6">
  |     <task swimlane="user3">
  |       <controller>
  |         <variable name="initiatorname" access="read"/>
  |         <variable name="state-2-yourname" access="read"/>
  |         <variable name="state-4-yourname" access="read"/>
  |         <variable name="state-5-yourname"/>
  |       </controller>
  |     </task>
  |     <transition to="end" />
  |   </task-node>
  | 
  |   <end-state name="end" />
  | 
  | </process-definition>
  | 

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

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


-------------------------------------------------------
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

Reply via email to