Close RITM when last task belonging to that RITM is closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 10:31 AM
Hi All,
I need to Close the ritm and Request when all the Two task belonging to that RITMs is Closed.
I have List Collector Variable and whatever the assets are filled in that Variable, Respective RITMS will Create and Under those Ritm one asset task is created and when this task is closed then last second task is created.
For Ex:
SS and Explanation of Flow :
Explanation of Flow:
Step 1 : Get all the Catalog Variable
Step 2 : Lookup the Request item Record
Condition = Request is Trigger - Service Catalog - Requested Item Record - Request
Step 3 : Created a Variable and Set Count is 0
Step 4 : Lookup Hardware Records
Condition = SysID is one of Get catalog variable - List Collector Variable
Step 5 : If (Step - 2 Lookup Records > Count) less than (Step 4 - Look Records Count)
Step 6 : For Each item in (Step 4 - Lookup Records - Hardware Records)
Step 7 : If (Flow variable > AssetCounts) is 0
Step 8 : Update Requested Item Records
Record : Trigger - Service Catalog - Requested Item Record
Step 9 : Create task (By using a Count logic we have created a task in default ritm) (Wait - Checked)
Step 10 : Create task (Not added in a ScreenShot)
Step 11 : Else
Step 12 : Create Requested Item Record
Table : sc_req_item
Step 13 : Copy Variable Data
Step 14 : Create Task - (Wait - Checked)
Step 15 : Create Task - ((Not added in a ScreenShot) )
Step 16 : Set Flow Variable
Inline Script :
var count=fd_data.flow_var.assetcounts+1;
return count;
PS : Don't want to use Wait For Condition Action Due to Performance Issue.
Thanks in Advance