How to Wait until tasks in separate flows are finished?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2025 05:25 AM
I have two flows, flow A and flow B. I need my ansible playbook to run after both tasks (the one in Flow A, and the one in Flow B) are complete. How do I keep track of the status of the tasks in separate flows?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2025 05:00 AM - edited ‎03-06-2025 05:01 AM
Are these tasks you talk about related to any type of record that is stored in SN? Is there any parent record that triggers both flow A and flow B, or any record that is changed after flow a and flow b have finished?
Flow designer has the wait for condition action that you can use but it requires the records to be passed as inputs, if you had an actual record for task A and Task B, you could have a wait condition for each task to move to a certain state for example before triggering your ansible playbook.
If you don't store this information on any record other the flow context it might be a bit trickier to accomplish and we need to go for other routes. You can for example have a look at this new option: Sending message to an active flow from outside of ... - ServiceNow Community