Decision
Overview
The Decisions workflow platform allows you to define the decisions and processes you need once and then lets the automated process take them forward
Create a Decision workflow
Click the Workflow tab, and refer to this link Workflows
You have to drag and drop the Toaster to show the Decision, refer to this link for details on the Toaster workflow Toaster
Drag and drop the Decision action
Decision Action WorkflowClick on the Config tab
Criteria: Criteria determine the conditions under which the criteria apply
When the given criteria in the workflow are completed, then the criteria are fired
Criteria help you identify the best decision
AND: When all the conditions are satisfied, then it returns true otherwise false
OR: When one (or both) conditions are satisfied, then it returns true otherwise false
Add Condition: You can add multiple conditions
Click on the + icon
Fill in the information, click Save
Destination Type:
Variable: Variables are containers for storing data values in PWR Apps
Operator: The operator is a character that represents a specific mathematical or logical action
Source Type:
New variable: You can enter the variable
For more details refer to this link Models
Add Group: Criteria can be added within other criteria i.e Nested criteria
Click on the + icon
By clicking on the button, you can set the NOT criteria for a given condition
NOT: Which is used to reverse the result of any given condition
If the result of a condition is true, the result will be reversed as false, Similarly, if the condition's result is false, the NOT operator reverses the result and returns true
Delete: You can delete the condition
Click on the Delete icon
Before Delete
After Delete
Click on the Action Details tab
Label: Label for the selected action
Name: Name is a unique identifier for the action
Is Async?:
Description: Short description of Decision
Click on the Input tab
Click on the + icon
Fill in the information, click Save
Label: To display as a label for the workflow
Name: To uniquely identify the workflow within the form
Field Type: You can select the field type from the dropdown
Field: Text, Checkbox, Integer, Double, etc
Required: If this checkbox is checked, the field is required
Is Array?: If this checkbox is checked, the field is stored in the array
Default Value: You can set a default value for the input
Decision input created
By using the x (cross) icon, you can delete the Input property
Delete the Input
Go to the Layout page
Click on Run
The preview page will open
As per your given criteria, fill the information in the New Variable and click Save
If the criteria are met, the decision will be true and Succuss Message will be displayed
If the criteria are not met, the decision will be false and an Error Message will be displayed