Next Workflow control flow

Learn how to use the Next Workflow control flow in POpFlow BUI.

Last published at: March 1st, 2022

The ‘Next Workflow' Activity allows you to run a workflow within another workflow. It has only one child path ‘ON WORKFLOW COMPLETE’. This path becomes available after enabling “Should return to this workflow”.

Delete

NOTE

To use the Next Workflow activity, the workflow must be published and the selected workflow Inside the activity must also be published. This activity does not work in test harness.

image

After opening the 'Next Workflow' activity, you will get the below configuration panel.

Default configuration parameters

Field Description
Select Wowkflow Next workflow to be executed
Should return this workflow checkbox If enabled - The current workflow will pause execution and execute the selected workflow immediately. Once the execution is complete, it will resume the paused workflow at the ON WORKFLOW COMPLETE point.
If disabled - The workflow to be executed will be added to the queue and will execute in the order it was added to the queue.

Sample Next Workflow Activity

  1. Select the ‘Next Workflow' activity from 'Activity Sidebar’.
  2. Click on ‘Next Workflow' activity to open and configure the 'Next Workflow’ activity.
  3. Click on the ‘Select Workflow' field to open the list of the available workflow as shown below.

  1. It will show all the workflows from all the events.
  2. Select the workflow name which you want to execute. (NOTE: The selected workflow must be published)

  1. After selecting the workflow you will notice a 'VIEW' button is visible. If you click on the view button, it will open the selected workflow on the next tab.
  2. If you don't want to add any other activity in the current workflow, then close the 'Next Workflow' activity and publish it.
  3. This configuration will execute the 'Next Workflow'.
  4. If you want to add some other activity after the completion of ‘Next Workflow', then check the 'Should return to this workflow’ as shown below.

  1. Once the ‘Should return to this workflow' is checked it will create a button under the 'Next Workflow’ as shown below.

  1. You can add any activity on the button and it will execute after completion of the next workflow.
  2. Add the ‘Desktop Notification' activity on the 'ON WORKFLOW COMPLETE’ button to alert the user as shown below.

Delete

NOTE

To use the Next Workflow activity, the workflow must be published and the selected workflow Inside the activity must also be published. This activity does not work in test harness.



Related Articles

  • If control flow

    You have various options when dealing with conditions and controlling the flow of...

  • For Each

    The ForEach activity allows you to iterate over a list of items and process each ...

  • Switch control flow

    Switch Statement The 'Switch' Activity is used to identify unique branches of the...

  • Stop Workflow control flow

    The ‘Stop Workflow’ Activity allows you to stop the execution of the current exec...