Flow Designer - RITM closure wait for all tasks to close, not just flow generated ones.

Beth Clingenpee
Giga Guru

Situation: Catalog Item to request general work from our IT department that is not covered under other catalog items. This generates a RITM & SCTASK assigned to our Intake team to review. The Intake team will determine if the work is a demand that needs to go to our project teams or operational that can be worked immediately by an assignment group - or several groups, depending on need. They have the need to manually create SCTASKS to assign out to various groups and then can close their task and move to other work. The issue is that once they close their task, the RITM closes - even with other open tasks attached.

How do I add a step in Flow Designer to look for all open tasks related to the RITM before moving to the last step of the flow that sets the state of the RITM to closed complete? I added a Look Up Record step in my flow, but don't know what to do after that.

I'm a newbie - so simple instructions are greatly appreciated!

 

2 REPLIES 2

Bernd Hoffmeier
Kilo Sage

An option if you don't want to use any scripts or other workflow logic you could try the following.

 

Create a Do... until loop. Within this loop you can do a lookup of all SCTASKs that are active and parent is the RITM. For each of these you do a wait condition with Active = false. You do this until your Lookup Count will be 0.

 

Bernd7_0-1707395767551.png

 

So in case additional tasks are getting created it will start the count of open tasks again.

Only constraint with this is, that the Wait Condition is only triggered for the first "For each" but this shouldn't be an issue in this use case.

 

If you want to add this for each of your RITM flows you can also add this to a subflow so it is reusable.

Thanks for this. Worked like a charm.