Flow Designer to check for all parallel sc_task state if anyone updated 'Closed Completed'

Shridhar1
Tera Contributor

Hello,

For RITM, if parallel sc_tasks are generated (example 4 tasks) via flow. If anyone of sc_task is close completed how can we monitor this using flow designer. As we need to perform other actions once anyone of sc_task is close completed

we don't know number of parallel sc_task generated for catalog item, sc_task are  generated via subflow.

This RITM flow is generic flow configured for multiple catalog items created via catalog builder.

We have an option using BR, but requirement is to fulfill it via flow itself

 

Thank you

 

7 REPLIES 7

OlaN
Giga Sage
Giga Sage

Hi,

Interesting question.

I'm sure someone else can think of a more clever solution, but one way you can try, is to create 4 "Wait for condition" that runs in parallel and monitors each of these Catalog tasks for the when the Close complete happens.

Shridhar1
Tera Contributor

Hello,

Thank you for the response

Issue here is, we are unsure of number of parallel sc_task generated for catalog item, these are  generating via subflow. this flow is generic flow configured for multiple catalog items created via catalog builder.

On flow we are able to get count of sc_task generated, but wait for condition is not valid when checking for multiple records

How do you know when the subflow that creates these tasks has finished?

Does it not wait for all created tasks to be completed before it's finished?

Maybe you will need to have some marker saying how many tasks that relate to a RITM has been completed.
Then you can use that marker to define what should happen next, when the first/second etc. task has been completed.

Kailash Bhange
Kilo Sage
Kilo Sage

Hello Shridhar,

Can you please provide more details on requirement?

seems like there are some gaps.

for example: - 

what if multiple tasks are closed complete?

 

Just to answer your question, please try below scenario: - 

 

1. Create one new flag/field on RITM (true/false).

2. Create BR to check if state of sc_task is closed complete and mark that flag as true.(you can do it in Flow designer as well).

3. Once the RITM is updated and the flag is true then create incident or do whatever your further requirement is(you can do it in FLOW).

 

Note: - keep in mind that if any sc_task closes complete and flag is already true then do not do anything.(as per your requirement in question -->As we need to perform other actions once anyone of sc_task is close completed)

 

Hope this helps.
If my answer resolves your issue, please mark my answer as ✅ Correct & Helpful based on the validations.

Thank You!
Regards,
Kailash