Private vs Shared Flows In Form Steps
  • 23 Jun 2022
  • 3 Minutes to read
  • Dark
    Light
  This documentation version is deprecated, please click here for the latest version.

Private vs Shared Flows In Form Steps

  • Dark
    Light

Article summary

Overview

This tutorial demonstrates how to use Private and Shared Flow modes in Form steps. These Flow modes are used in the Flow Designer in Form steps. If the Form is Assigned it is possible to perform some additional Actions when the Form is being assigned. 

The differences between Private and Shared Flows: 

  1. Private Flows can pull data from the Parent Flow. They are tied to a specific Form component and will not be visible in the Folder tree.
  2. Shared Flows will not have Flow data available, but it is reusable on other Form steps (not tied to a specific Form component).

Example

In this example, create a Flow that will notify administrative users. Trigger this Flow from the Main Flow with the Form Assignment. Then show the difference between Private and Shared Flow modes in the Form steps.

  1. First, create a Notification Flow that will be triggered by the Main Flow. In the Designer Folder, select CREATE FLOW on the Folder Actions Panel.

  2. Name the Flow, set the Flow behavior to Form Assignment Handler Flow, and select CREATE to proceed to the Flow Designer.

  3. In the Flow Designer, select the Start step in the Properties tab under common properties.
  4. Under Flow Input Data, select the Show Editor link to add input parameters to the Flow.

  5. Add four inputs to this Flow: URL, Assignment ID, Step Tracking ID, and Flow Tracking ID. All Data is of string type and Can be null.

  6. Next, add a Send Notification step from the All Steps [Catalog] > Communication category. 
  7. Then, connect the outcome from this step to the End step in the Flow.

  8. Then, select the Send Notification step.
  9. In the Step Information Layer, locate the NotifyUser box and using Add New link, add Admin user.

  10. Next, define Constant Subject for the Notification and Text Merge.Plain Mapping type for Message field and select Show Editor.

  11. In the Text Merge Editor, use the Flow Inputs for informational purposes. Select SAVE to save and close Text Editor.

  12. This completes the Flow. Save and close.

  13. Now, create the Main FlowSelect CREATE FLOW on the Folder Actions Panel.


  14. Then, name the Flow and select CREATE to proceed to the Flow Designer.

  15. In the Flow Designer, add a Show Form step from the Favorite Steps category.

  16. In the resulting window, name the Form and select CREATE.

  17. The Form for this example has only one Button component. 
  18. When finished designing the Form, save and close.

  19. Back in the Flow Designer, connect the outcome from the Show Form step to the End step in the Flow. 
  20. Then, change the Assignment Type for the Form step from InSession to Assigned.

  21. Next, choose and Assign the Form to a user.

  22. In Form step properties, locate under Assignment Set Up and then On Step Run section and in the drop down select from the three options. 
  23. Choose between Private or Shared mode for the Flow to run.

  24. Pick Shared Flow. There are additional Parameters available now (URL, Assignment ID, Step Tracking ID, Flow Tracking ID).
  25. This is Data that can be sent to the Shared Flow. 
  26. Use the Flow picker to select a Flow to Run.

  27. Then, pick the Notification Flow that was created previously in this tutorial and select OK.

  28. This completes the Flow. Save it and close.
  29. In the Designer Folder, locate the Main Flow and select Run Flow.

  30. Two Notifications pop up. One explains a Form Assignment. Another is the custom message, from the Notification Flow.
  31. It contains Data that was passed from the Main Flow. This is how a Shared Flow mode works in Form steps.

  32. Edit the Flow to switch the Run Flow mode to Private.
  33. Select the Form step on the workspace, locate Show Flow To Run drop down menu and pick Private. 
  34. Once Private is selected the parameters: URL, Assignment ID, Step Tracking ID, and Flow Tracking ID are no longer available.
  35. This is how Private mode differs from Shared Flow.

  36. Then, use the Flow Picker to select the same Flow that was selected for Shared Flow mode. Save and close.

  37. Two notifications will pop up. This time the custom Notification has Null values of URL, Assignment ID, Step Tracking ID, and Flow Tracking ID. This is because Private was selected. 


Was this article helpful?