Flow Designer - Wait Conditions

Richard T
Kilo Guru

Hi

A I am struggling to get started with parts of flow designer and would like to some advice on how to go about achieving something specific.

I have a flow that calls several reusable sub flows. Most of the sub flows are very basic in that they are just creating specific tasks on the case table but some need to behave slightly differently.

These ones need to create the task and then, if the task is not closed in 7 days send an email reminder. Is there a way I can stop the sub flow waiting 7 days to see if the task is closed as sometimes it can be closed in minute but the 7 day wait is preventing the other sub flows from running.

Thanks in advance.

 

1 ACCEPTED SOLUTION

Tony Cattoi
Mega Guru

Hi Richard,

You probably have a few options to handle what you need.

You could try using the Do the Following in Parallel flow logic.  This would allow you to run multiple things at the same time in either your flow or subflow.  For example you could use the do the following in parallel to create your task and then do the following in parallel:

  • wait 7 days and send reminder email
  • wait for closure and end if the subtask is closed

 

You can read more about this option here: https://developer.servicenow.com/dev.do#!/learn/learning-plans/orlando/new_to_servicenow/app_store_l...

 

You could also potentially create separate flows for the waiting/reminder email part of your task after they are created that are managed outside your main flow.

 

So you have a few options that may work for your needs.

Thanks,

Tony

View solution in original post

2 REPLIES 2

Tony Cattoi
Mega Guru

Hi Richard,

You probably have a few options to handle what you need.

You could try using the Do the Following in Parallel flow logic.  This would allow you to run multiple things at the same time in either your flow or subflow.  For example you could use the do the following in parallel to create your task and then do the following in parallel:

  • wait 7 days and send reminder email
  • wait for closure and end if the subtask is closed

 

You can read more about this option here: https://developer.servicenow.com/dev.do#!/learn/learning-plans/orlando/new_to_servicenow/app_store_l...

 

You could also potentially create separate flows for the waiting/reminder email part of your task after they are created that are managed outside your main flow.

 

So you have a few options that may work for your needs.

Thanks,

Tony

David Neves
Kilo Guru

Hi Richard,

You can achieve this by adding a 'Do the following in Parallel' Flow logic.

This way you can have a 'Wait for a duration' Flow logic (7 days),
as well as a 'Wait for Condition' Action, that continues the flow if the task is closed.


Regards,

David Neves