I have a workflow with 3 tasks. ( Task1/Task2/Task3 )
Task 2 should start 15 mins delayed after Task 1 is completed.
Could you please guide me how to achieve this?
Plan A: put an EVNT.TIME object (with 15 Minutes) between both tasks
Plan B: You could use a precondition in Task B to wait
There are many workflows that may require this condition.
Can you help me with Plan B?
Plan C: use the WAIT script command.
This command could be used inside of the process script of each job, but we thought it was better to keep it separate. So we put it in a separate script object with an override-able time variable that we then add to our workflows as a separate task. (very similar to PLAN A, but provides granularity down to seconds)
Thank you for your inputs.
I tried this: TaskA->Script(only with Wait)->TaskB.
But When I execute the workflow, the script is executed first ,it waits for the duration mentioned in the script, executes TaskA and then TaskB.
Attached the screenshot.
If anything missing, Please let me know.
Plan B: here you go...
Regarding your wait -issue -yes you are missing the good old "Generate@Runtime" checkbox on properties tab :-)
Just a short hint to Plan C: you can put it onto POST_PROCESS of your SAP Job.
Doing so you do not need a seperate Script with just a : WAIT command (and the checkbox "Generate at runtime" checked)
Thank you Wolfgang.
I have tested both the options as you mentioned.
Plan A - Event based - Working fine
Plan B - pre-condition - Plan A and Plan C came close to the expected result. Pre-condition had more delay compared to script as the granularity is in mins compared to seconds. However it is still a good option in certain cases.
Wolfgang is correct, your Script(only with Wait) is executing too early because you have not turned on the "Generate at runtime" option.
Thank you Pete.
I have used the option( Plan C ) as you mentioned and its working perfectly fine.