setWorkFlow(false) in flow designer

Chinmayee Mishr
Tera Contributor

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

 

5 REPLIES 5

Sumit Pandey1
Kilo Guru
Kilo Guru

For this specific require.ment why not do all in 1 flow? instead of having multiple flows.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

can you share the flow screenshots?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Jagmeet Singh
Tera Expert

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

Chinmayee Mishr
Tera Contributor

I located the respective flow context and cancelled that flow context. It worked. 🙂