OVERVIEW:
The ‘Next Workflow' Activity allows you to run a workflow within another workflow. It has only one child button ‘ON WORKFLOW COMPLETE’. You can execute different activity on this buttons.
After opening the 'Next Workflow' activity, you will get the below configuration panel.
Default Configuration Parameters:
Select Workflow: Next workflow to be executed.
Should return to this workflow:
After executing the selected workflow current workflow will start executing.
HOW IT WORKS:
A Simple Example to configure the 'Next Workflow' activity in PopFlow Studio.
Select the ‘Next Workflow' activity from 'Activity Sidebar’.
Click on ‘Next Workflow' activity to open and configure the 'Next Workflow’ activity.
Click on the ‘Select Workflow' field to open the list of the available workflow as shown below.
It will show all the workflows from all the events.
Select the workflow name which you want to execute. (NOTE: The selected workflow must be published)
After selecting the workflow you will notice a 'VIEW' button is created. If you click on the view button it will open the selected workflow on the next tab.
If you don't want to add any other activity in the current workflow then close the 'Next Workflow' activity and publish it.
This configuration will execute the 'Next Workflow'.
If you want to add some other activity after the completion of ‘Next Workflow' then select the 'Should return to this workflow’ as shown below.
Once the ‘Should return to this workflow' is selected it will create a button under the 'Next Workflow’ as shown below.
You can add any activity on the button and it will execute after completion of the next workflow.
You can add the ‘Desktop Notification' activity on 'ON WORKFLOW COMPLETE’ button to alert the user as shown below.
NOTE: TO USE THE ‘NEXT WORKFLOW' ACTIVITY THE WORKFLOW MUST BE PUBLISHED AND THE SELECTED WORKFLOW INSIDE THE 'NEXT WORKFLOW’ ACTIVITY MUST ALSO BE PUBLISHED. THIS ACTIVITY DOES NOT WORK IN TEST HARNESS.