Process each catalog task separately in flow designer

ShAn21
Tera Guru

Hi Team,

I have a scenario where I have to create catalog tasks and assign to the assignment group based on the groups chosen in the list collector variable on the form. The number of tasks can be dynamic as the end user can choose any number of groups.

This seems easy to create but the issue is I have to process these tasks separately as each one has to enter its own process post closure. Basically once closed the task must trigger the next related task of its own and not wait for others. The same will be for other tasks.

 

I tried using combo of 'For Each' and 'Do the following in parallel' but it waits for tasks in order. I dont see 'do in parallel' serves any purpose but still. Only after first one is closed it checks for next one. I want this to be done in parallel.

 

Any help here is appreciated.

 

ShAn21_0-1669833988772.png

 

 

 

Regards

8 REPLIES 8

Maybe create a subflow for each task and dependent related tasks.

Then in your loop, call the subflow.

adwivedi
Tera Contributor

@ShAn21 Were you able to figure this out? I am in a similar need and my tasks are not getting generated together. They wait for the one to close before creating the next one. Thanks.

asifnoor
Kilo Patron

In your flow, inside for each 

create tasks for each assignment group. Uncheck wait for condition. This way it will create all tasks at a time.

Now create a subflow and pass each task sys_id to that. Call this subflow inside the same foreach loop after create task and pass the task sys_id.

So for each task, the subflow will trigger and the subflow should have wait for condition to check if the parent taks is closed, if yes, then continue the followup process.

 

That way, as and when the parent task is completed, its associated subflow will trigger.Till then your subflow will be waiting.

 

Mark the comment as a correct answer and helpful if this has solved your problem.

scottl
Kilo Sage

I have the same requirement, did you manage to figure out how to achieve this? As this seems to be a huge limitation to Flow Designer and I have yet to figure out a way to achieve this either, and have hit a brick wall.