- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 02:05 AM
Hi,
The scenario I am dealing with right now is where multiple tasks are generated upon selection of certain variables. These variables are independent from each other. The RITM should be closed only when all SCTASKs created according to the conditions are closed.
I have tried using Join activity, but it does not work since Join will move to complete only when all the lines going to the activity are executed which is not happening in this scenario.
Can anyone help me with how to achieve the desired outcome?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2024 12:13 PM - edited 12-23-2024 12:15 PM
Hi,
I have referred to this link - Wait for Closure of all Tasks in Graphical Workflow and used Wait Condition Activity instead of Join Activity to achieve the required outcome.
Thank you everyone for replying to my post and helping me!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 02:22 AM
Just create a new flow triggering on closure of an sc_task. Validate if no other tasks are open for this RITM and if not, close it. If so, end flow.
Or do it with a BR. You can't do this within the workflow because of the issue you described yourself.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 02:36 AM
you can use after update BR on sc_task for your specific catalog item
check this link where I shared sample script few years ago
How can we close RITM when all the catalog task is closed for that item?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2024 12:13 PM - edited 12-23-2024 12:15 PM
Hi,
I have referred to this link - Wait for Closure of all Tasks in Graphical Workflow and used Wait Condition Activity instead of Join Activity to achieve the required outcome.
Thank you everyone for replying to my post and helping me!