Using Truth Tables To Kick Off Actions
  • 02 Dec 2021
  • 2 Minutes to read
  • Dark
    Light
  This documentation version is deprecated, please click here for the latest version.

Using Truth Tables To Kick Off Actions

  • Dark
    Light

Article summary

Overview

Truth Tables can be used to kick off different actions such as running a different Flow that is based on what the Truth Table evaluates.


Example

In this example, a user will fill out a Form with their name and credit score. The Truth Table will evaluate the score and will run a Flow based on the Rule evaluation. 

  1. In a Designer Project, click CREATE FLOW, select Default, and click CREATE. Name the Flow and click CREATE.
  2. Click the Done path of the Start step. Select the Show Popup step and click ADD.
  3. On the Properties panel under the Inputs category, enter "Application Status: Approved" in the Subject field and enter "Based on credit score, your loan has been approved." in the Message Field.

  4. Connect the Done path to the End Step. Click Save and close the Flow.
  5. Create another Flow with a Show Popup step. Enter "Application Status: Denied" for the Subject and "Based on your credit score, your loan has been denied."
  6. Create a new Flow. Click the Done path of Start Step and select the Show Form. Click ADD.
  7. Click Pick or Create Form. Name the Form and click CREATE.
  8. Configure the Form to have Labels (Name, Credit Score), Text Box component (ApplicantName), Number Box (ApplicantScore), and a Button (Submit). Click Save and close the Form.
  9. Click the Submit path. Select the Run Truth Table step and click ADD.
  10. Click Pick or Create TruthTable. Name the Truth Table and click CREATE.
  11. Click SETUP INPUT DATA.
  12. Enter "CreditScore" as the Name and select Int32[Number] as the Type. Click CLOSE.
  13. Click Select Data Element, select CreditScore, and click CLOSE.
  14. Select Between and click CLOSE.
  15. Click the cell and enter "499" for Low Value and "619" for High Value. Click CLOSE.
  16. Click Click To Add Row and enter "620" for Low Value and "850" for High Value.
  17. On the Properties panel under the Output category, select the Allow Actions checkbox. On the first row, click Add under the Actions column, select Run Flow and click Pick.
  18. Select the DeniedFlowKickOff Flow and click PICK.
  19. Click the Add in the second row and add the ApprovalFlowKickOff Flow. Click Save and close the Truth Table.
  20. On the Properties panel, click Edit Input Mapping.
  21. Connect Applicant Score to Credit Score and click OK.
  22. Connect the Done path to the End step. Click Save to save changes.



Debug

  1. On the top action bar, click Debug. Click FULL.
  2. Enter a name and enter "555" as a Credit Score. The Truth Table will evaluate the input and run the DeniedKickOff Flow. Click CREATE NEW SESSION and enter a higher number to have the Truth Table evaluate the input and run the ApprovalKickOff Flow.





Was this article helpful?

What's Next