- If both workflow exists in same folder we can create 2 worklet rather than creating 2 workfolws.
- Finally we can call these 2 worklets in one workflow.
- There we can set the dependency.
- If both workflows exists in different folders or repository then we cannot create worklet.
- We can set the dependency between these two workflow using shell script is one approach.
- The other approach is event wait and event rise.
If both workflow exists in different folrder or different rep then we can use below approaches.
1) Using shell script
- As soon as first workflow get completes we are creating zero byte file (indicator file).
- If indicator file is available in particular location. We will run second workflow.
- If indicator file is not available we will wait for 5 minutes and again we will check for the indicator. Like this we will continue the loop for 5 times i.e 30 minutes.
- After 30 minutes if the file does not exists we will send out email notification.
2) Event wait and Event rise approach
We can put event wait before actual session run in the workflow to wait a indicator file if file available then it will run the session other event wait it will wait for infinite time till the indicator file is available.
No comments:
Post a Comment