(Example) Configure a Condition Activity (Check Leave Approval Status)

This example shows how to configures a conditional expression to check if the manager approved or rejected the leave request in the Absence Request process.

Background and Setup

Good to Know

Procedure

  1. On the Common tab, drag the Condition Condition icon activity onto your process.

    Drag Condition Activity
  2. On the Condition Builder screen, in the Display Name field, enter Approval Status.

    Enter Display Name
  3. In the IF field, enter Approve.

    IF Field
  4. Click Edit Edit icon.

    Click Edit
  5. On the Condition Builder > Build Basic Query screen, click App Data > Form Data.

    Expand Form Data
  6. In the Rule Variable field, drag the ApproveorReject form field.

    Drag ApproveorReject
  7. In the Operator field, select == from String data type.

    String data type
  8. In the Rule Value field, enter Approve.

    Enter Rule Value
  9. To make sure the rule is correct, click Validate Validate icon.

    Click Validate
  10. Click Back Back icon to save your rule and go back to the Condition Builder screen.

    Click Back
  11. In the ELSE field, enter Reject.

    Enter ELSE Value
  12. Click Finish.

    The Process Builder shows the Approval Status Condition activity for the Absence Request process.


    Leave Approval Status Condition activity