Close RITM when catalog task is closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2022 03:31 PM - edited 12-06-2022 03:37 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2022 03:45 PM
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: -
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2022 06:04 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2022 06:13 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 05:09 AM
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.