Using Main Approval Flow
  • 23 Jul 2021
  • 2 Minutes to read
  • Dark
    Light
  This documentation version is deprecated, please click here for the latest version.

Using Main Approval Flow

  • Dark
    Light

Article summary

Overview

Decisions includes a pre-built Approval Flow. This Flow allows users to quickly create a Flow that requires Approval using a Sub Flow and Approval Chain for the Approval process.

To use the Approval Flow, the Approval Module needs to be installed. To learn how to install modules, see Installing Modules in Decisions.

Example

This example demonstrates how to use the pre-built Sub Flow, which has Approval behaviors, to quickly create a simple request Flow that requires Approval.

  1. In a Designer Project, click CREATE FLOW, select Default under Flow, and click CREATE. Name the Flow and click CREATE. 
  2. In the Flow Designer, add a Show Form step to the Done path of the Start step. Configure the Form to have two Text Box elements, Date Time Picker, and Button. Click Save to save Form and click Close to return to Flow Designer.
     
  3. Click the Submit path and navigate to Integrations > All Integrations > Approvals. Select the Run Approval Flow step and click ADD.
  4.  Under the Advanced category on the Properties panel, click Create. Name the Flow and click CREATE.
  5. Select the Start step and click Show Editor on the Properties panel. Add fields for Request Details, Request Summary, and Requester Email. Click CLOSE to save.
  6. Click the Done path and add a Form that displays the data from the Request Form and a Text Box for providing details on Rejection. Select the Text Box and under Required Outcome Scenarios, check the checkbox  Reject. Click Save and close the Form.
  7. Connect the Approve path to the End step and rename the Data field to "Approve".
  8. Select the Reject path and navigate to All Steps [Catalog] > Flow Management. Select End step and click ADD.
  9. Enter "Reject" in the Data field.
  10. Select the Form and click Edit Input Mappings.
  11. Map the fields from the Start step that correlate to the appropriate Form fields. Choose the Ignore mapping for the Approval Rejection Comments and Need By Date Picker fields. Click OK to save.
  12. Click Save and close the Flow.
  13. With the Run Flow Approval step selected, click Edit Input Mappings and map the Request Form output to the Flow Input. Click OK.
  14. On the Properties Panel, toggle the Load Approval Chain setting and click Pick and choose the desired Approval Chain.
  15. Connect the Approve and Reject paths to the End step. Click Save to save changes.


Debug 

  1. Click Debug on the top action bar. Then, click FULL.  
  2. The Request Form will display, fill it out and click Submit.
  3. The Approval form will display. Fill out the form and click either Reject or Approve to test each path.



Was this article helpful?