setWorkFlow(false) in flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2022 12:17 PM
Hi ,
I have a use case, where if an user with role x_mgr cancels one catalog task , all the task in the related ritm should be cancelled. requirement is to do it using flow designer. Lets say Its my flow_1. There is already a catalog item flow is designed to create task2 upon closure of task1. task3 upon closure of task4 and so on. Lets say flow_2.
So even though my flow_1 is all in place , Its not able to cancel all the tasks in the ritm. because of flow_2. So I end up still having open tasks. How do I stop running flow_2 from flow_1 ?
Please advise.
Best Regards,
Chinmayee Mishra
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2022 10:02 PM
For this specific require.ment why not do all in 1 flow? instead of having multiple flows.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2022 10:30 PM
Hi,
can you share the flow screenshots?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2022 10:44 PM
Hi Chinmayee Mishra,
setWorkflow(false) actually already prevents Flows from running. This funstion "setWorkflow(false)" is not intended only for Business Rules.
Hope this helps!
regards,
Jagmeet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2022 10:22 AM
I located the respective flow context and cancelled that flow context. It worked. 🙂