Task closure validation in flow before closing RITM

Somujit1
Tera Contributor

Hi,

 

I have a requirement where i need to validate SCTASK closure in flow designer when closing a RITM manually.

 

Scenario:

Once the RITM is approved, automated tasks gets created via the flow and additional manual tasks can also be created. When RITM is being closed manually it should validate for associated open sctask and enforce sctask closure.

 

The flow trigger is Service Catalog, and I have defined the logic as attached (Flow.jpg) for RITM close action and SCTASK closure validate (steps 8-14), but the SCTASK validation doesn't seem to happen when I am closing the RITM as attached (Flow_Run.jpg)

 

Any solution on how to validate the sctask closure while closing the RITM ?

 

Regards,

Somujit

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Somujit1 

you better close RITM once all catalog tasks are closed via after update BR.

BR runs in foreground and you can use validation there but flow runs in background so you cannot stop RITM closure

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

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@Somujit1 

you better close RITM once all catalog tasks are closed via after update BR.

BR runs in foreground and you can use validation there but flow runs in background so you cannot stop RITM closure

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