Flow designer Do the Following in Parallel not running in parallel

gjz
Mega Sage

If an incident is created that is a security issue we have a requirement to create three tasks to run in parallel to address the security incident. Once the three incident tasks are complete the incident needs to be automatically closed.  I've chosen to use Flow Designer but I have found I can't get the three tasks to open at the same time.

My flow looks like this:

find_real_file.png

 

 

Here are the details of one of the tasks - the other parallel tasks are the same except for the assignment group.

find_real_file.png

If I check the "Wait" field, only the first task opens and the others will not until the 1st is closed.

If I leave it unchecked, the last task completes before the three tasks are complete - which is not the desired behavior, I need the last task to wait until all three tasks are complete.

Can anyone spot why this doesn't work?

1 ACCEPTED SOLUTION

ok.

Make wait checkbox unchecked so that all tasks will execute parallely.

Add If clause and check state for all tasks 

if the state of all tasks closed complete then it will jump to that next step.

find_real_file.png

PPlease let me know if it helped you

View solution in original post

15 REPLIES 15

Bimschleger
ServiceNow Employee
ServiceNow Employee

In your example, you have three tasks running sequentially on a single branch.

To execute three parallel tasks, you need to create more parallel branches.

Click on the larger (+) to add a parallel branch. Once you add another parallel branch, you can drag one of your actions to the new parallel branch.

That doesn't make sense.  The whole point of running in parallel is to be able to run do things at the same time.  I don't think that is the solution.

 

Bimschleger
ServiceNow Employee
ServiceNow Employee

Correct, the point of 'Do the following in parallel' is to run actions in parallel.

To achieve your desired outcome, try updating your flow to have 3 parallel paths, with a 'Create task' in each parallel path (check out the screenshot).

Priyanka SHIND2
Mega Guru

Hello,

I have recently faced these challenges. Here is the answer to your query

find_real_file.png

Uncheck this wait checkbox in three of your tasks then at the same time it will create all the tasks.

When the wait checkbox is checked that time it waits for the task to complete and then creates a new task.

if you need more information please let me know.

Please mark my answer as correct helpful if it helped you in any way.

 

Thank you.

Priyanka