Flow Designer wait for catalog tasks to close before updating Request state to closed complete.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 10:09 AM
Hello,
Currently, once the request is created and approved, one task gets generated. After the first task is closed, a second task is created. The requirement is to change the RITM state to "Closed Complete" only when the second task is closed. However, in my case, the RITM state changes to "Closed Complete" immediately after the first task is closed, and then the second task gets created. Can someone please help? This issue might be due to an existing business rule for all catalog items. Please see the script below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 02:26 PM
Hi @Ria,
Can you also share your Flow as well?
And in regards to the BR, I am assuming that it's on the SCTASK table?
Is this a custom BR and what happens if you deactivate it?
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 10:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 11:50 PM
Hi @Ria
You can add one more condition on field of Business rule so that not to run for particular catalog item
in property you can store the sysid of catalog item then add the condition so that it wont run that Business rule for those catalog task belongs to the that item
condition - current.state.changes() && (current.state == 3 || current.state ==7) && current.request_item.cat_item !=gs.getProperty('catalog_item_id')
If my answer helped you in any way, please then mark it as helpful or correct.
Thanks,
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2024 11:26 PM
Hi Bhavya,
I added the condition and it works well, but if someone manually adds a task, the RITM does not close.
Regards,
Riya Jain