Close RITM when catalog task is closed

Rocky5
Kilo Sage

Hello Experts,

 

 

we have RITM that will have one or multiple tasks. I need to set RITM to cancelled when all catalog tasks are cancelled but set RITM to closed complete if atleast one catalog task is set to closed complete because not all tasks are cancelled. How can I achieve that. ?

Thanks,

Rocky.

7 REPLIES 7

Mohit_Gupta
Tera Guru
Tera Guru

Hi @Rocky5 ,

 

You can write Business rule which will run on sctask after update basis on catalog item and state changes, and you need to check the other task as by applying below filter basis on your task form states except close complete: -

Mohit_Gupta_0-1670370117670.png

if you do not get any record then you need to update parent record as closed complete.

 

I hope this helps 

Please mark my answer correct if this helps you 

Thanks

Mohit

 

 

Hi Mohit,

 

Thanks for response, sorry I didn’t completely get you. Should I create 2 business rules is what you are saying. ? Can you please be more clear.

 

Thanks,

Rocky.

No, you need to create only one business rule and need to add when to run condition basis on catalog item and state changes and in advanced script you need write the logic according to the filter means you need to glide to the sctask table basis on filter given.

Thanks

Mohit

Hi Mohit,

 

My actual question is about logic only.. what should be the logic for the requirement. If atleast one catalog task on RITM is in closed complete state the RITM should be set to closed complete. 

thanks,

Rocky.