How to stop triggering SC task from Business rule?

raj99918
Tera Contributor

Hi 

 

I have requirement like to stop triggering the SC task 2 when the first SC task 1 state set to closed skipped How can I get this one from Business rule.

 

Note: This requirement is for 500 catalog forms so I cannot modify it on individual workflow I want to achieve it from Business rule

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@raj99918 

what do you mean by stop triggering SC Task 2?

why not remove the 2nd task generation from workflow or flow itself?

What's your business requirement here?

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

Hi @Ankur Bawiskar All these forms running on OOB Step based fulfilment flow designer on top of that we are triggering these sc task from Service Fulfillment steps however few having the 2 tasks few have only 1 task (For individual forms they designed like that) So I want to write one Business rule to restrict 2nd sc task to trigger if the 1st sc task state is closed skipped

 

@raj99918 

you can use before insert BR and check the total task count for the current RITM

If it's 1 and is for your catalog item then abort the insertion

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

@Ankur Bawiskar  Can you please help me with the script ?

 

Thanks