Using Truth Tables To Kick Off Actions
- 02 Dec 2021
- 2 Minutes to read
- Print
- DarkLight
This documentation version is deprecated, please click here for the latest version.
Using Truth Tables To Kick Off Actions
- Updated on 02 Dec 2021
- 2 Minutes to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
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.
- In a Designer Project, click CREATE FLOW, select Default, and click CREATE. Name the Flow and click CREATE.
- Click the Done path of the Start step. Select the Show Popup step and click ADD.
- 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.
- Connect the Done path to the End Step. Click Save and close the Flow.
- 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."
- Create a new Flow. Click the Done path of Start Step and select the Show Form. Click ADD.
- Click Pick or Create Form. Name the Form and click CREATE.
- 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.
- Click the Submit path. Select the Run Truth Table step and click ADD.
- Click Pick or Create TruthTable. Name the Truth Table and click CREATE.
- Click SETUP INPUT DATA.
- Enter "CreditScore" as the Name and select Int32[Number] as the Type. Click CLOSE.
- Click Select Data Element, select CreditScore, and click CLOSE.
- Select Between and click CLOSE.
- Click the cell and enter "499" for Low Value and "619" for High Value. Click CLOSE.
- Click Click To Add Row and enter "620" for Low Value and "850" for High Value.
- 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.
- Select the DeniedFlowKickOff Flow and click PICK.
- Click the Add in the second row and add the ApprovalFlowKickOff Flow. Click Save and close the Truth Table.
- On the Properties panel, click Edit Input Mapping.
- Connect Applicant Score to Credit Score and click OK.
- Connect the Done path to the End step. Click Save to save changes.
Debug
- On the top action bar, click Debug. Click FULL.
- 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?