we can run 2 workflows sequentially by creating 2 worklet(WL). wl contains set of reusable session..
if 2 wf are in same repository..
if 2 wf are in different repository we set the dependence by using shell script..
script one is used to run the first wf.after running the wf1 it will creates a zero bye file..
if it does not create zero bye file it will for loop times..each loop will wait for 5min..for zero bye file
if file available it will start running the second script to run second WF..if file not avalibel..
Method : 2 Create an indicator file after workflow 1 completes, in the second workflow ,have an event wait task , if it sees the file it will start running , if it doesnt see the task wait for the file
if you want to kill the process after waiting for some time, use a timer task and abort the process once it reaches a threshold