Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Create a Decision workflow

  • Click the Workflowtab, 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 Decisionaction

    Image RemovedImage Added
  • Click 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

...

  1. AND: When all the conditions are satisfied, then it returns true otherwise false

  2. OR: When one (or both) conditions are satisfied, then it returns true otherwise false

  3. Add Condition: You can add multiple conditions

    1. Click on the +icon

    2. Fill in the information, click Save

      1. Destination Type:

      2. Variable: Variables are containers for storing data values in PWR Apps

      3. Operator: The operator is a character that represents a specific mathematical or logical action

      4. Source Type:

      5. New variable: You can enter the variable

      For more details refer to this link Models

  4. Add Group: Criteria can be added within other criteria i.e Nested criteria

    1. 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 Deleteicon

      • Before Delete

      • After Delete

  • Click on the Action Detailstab

    Image RemovedImage Added
  1. Label: Label for the selected action

  2. Name: Name is a unique identifier for the action

  3. Is Async?:

  4. Description: Short description of Decision

  • Click on the Inputtab

  • Click on the + icon

    Image RemovedImage Added
    • Fill in the information, click Save

  1. Label: To display as a label for the workflow

  2. Name: To uniquely identify the workflow within the form

  3. Field Type: You can select the field type from the dropdown

    1. Field: Text, Checkbox, Integer, Double, etc

  4. Required: If this checkbox is checked, the field is required

  5. Is Array?: If this checkbox is checked, the field is stored in the array

  6. 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

    Image RemovedImage Added
  • Thepreview page will open

    • As per your given criteria, fill the information in the New Variable and click Save

      Image RemovedImage Added
      • If the criteria are met, the decision will be true andSuccuss Message will be displayed

        Image RemovedImage Added
      • If the criteria are not met, the decision will be false and an Error Message will be displayed

        Image RemovedImage Added