Subflow to "cancel" ritm when key task state is "Closed Incomplete/Skipped"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi all,
I'm looking for technical guidance, though I'm open to other ideas.
When I need to build a custom workflow for a catalog item (instead of Cat Builder), I'm consistently running across the scenario where I have a Key Task that can terminate the workflow, and "cancel" the RITM, if the task state is "Closed Incomplete" or "Closed Skipped".
This leads to 3 additional "actions" in a logic block (If statement, Update RITM, End Flow), which can make the workflow rather long. Sometimes, I'm bumping up against the actions limit in the workflow.
What I'd like to do is create a reusable subflow that holds the 3 actions and call that in my workflow, referencing the task right before it.
Can this be done? If so, how?
I'm open to other ideas to closing the RITM in the middle of a workflow, so if there are other ways to handle this, I'm all for it.
Thanks in advance.
Mathew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago - last edited 58m ago
Hi @MBMRED ,
I would simply build a subflow - take your key task and task status as input, check
Step 1 - Check status
Step 2 - Close the RITM
Step 3 - Return output (may be "End Flow") from the subflow
use this subflow across your catalog item flows, if subflow out is "End Flow > end the flow
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025,2026