Sunday, April 6, 2014

How to run a single session multiple times in a flow?

 


There is a workflow with three sessions.
S1 ---> S2 ---> S3.
How to repeat 5 successful runs for S2(session 2) without connecting the same
session 5 times in the flow (like S1 then 5 times S2 and then S3)..

session s1-->session s2-->assignment task-->decision task-->cmd task
event wait (file watcher)                                   session s3

1. First time session s2 will be run after session s1 normaly.
2. Assignment task will increase the value of workflow level variable to count run of session s2.
3. Decision task will be used to skip cmd task after 5 successful run of session2 and to run session s3.
4. cmd task will create a touch file (blank file) on some location.
5. Event wait (file watcher) will be used to start session s2 again.
6. if we want 5 times to run session s2 then s3 ,so after 5 times run of session s2, cmd task will be  skipped and session s3 will run this time.
 

1 comment:

  1. How do you start the session S2 again from the event wait (file watcher).can you explain in detail please .[step5]

    ReplyDelete