Conditional state transitions

States in Flowfinity are used to represent different steps in your business workflows. You can set up conditional business rules that determine whether a record will transition to a specific destination state, or remain in the default state.

Example

A manager reviews expense reimbursement requests, submitted from his or her team. After reviewing, the manager can specify if there is any missing information. The expense record will either transition to an ‘approved’ or ‘rejected’ state, depending on if the manager provides any comments.

Flowfinity - Conditional state transitions

Instructions

  1. Customize the application.
  2. If you haven't already created all the states you need, go into the Operations section, and under the States tab, add them here (e.g. Pending, Approved, and Rejected).
    Flowfinity - Conditional state transitions
  3. Now, go under the Operations tab, and add a new operation.
    Flowfinity - Conditional state transitions
  4. Give it a name (e.g. "Review for Approval"), and add a design comment if you wish.
  5. Under the Operations settings and in the Type dropdown, select 'Transition'.
    Flowfinity - Conditional state transitions
  6. Select the layout, and choose the states you want the operation to be available in (e.g. 'Pending').
    Flowfinity - Conditional state transitions
  7. Next, specify the default state the record transitions to once the operation is executed (e.g. Approved).
    Flowfinity - Conditional state transitions
  8. To make the record transition to a different state, add business rules and specify the alternate state. Click on 'Configure conditional destinations'.
    Flowfinity - Conditional state transitions
  9. Give it a name (e.g. Rejected), and apply the conditions that will make the record transition to the new destination state.
    Flowfinity - Conditional state transitions
    Flowfinity - Conditional state transitions
  10. In the form, there is a input field named 'Missing Information', that a manager can specify any additional information required. The condition will be when the Missing Infromation field contains data, the record's destination state will be 'Rejected'.
    Flowfinity - Conditional state transitions
    Flowfinity - Conditional state transitions
  11. Save the condition, and operation.
  12. You will now see both the default and destination states next to the new operation.
    Flowfinity - Conditional state transitions
  13. Publish the application.