Workflow with condition

You can add a workflow for which you record conditions. This means you can ensure that the workflow (depending on the condition) is completed in various ways.

In this example, you add a workflow for approving declarations. The following applies:

  • < €25: the declaration is automatically approved.
  • €25 - €99: the manager approves the declaration.
  • > €100: the director approves the declaration.
  • The addition of an attachment (with the receipt) is always mandatory!

In a diagram, this looks as follows:

Ins_Workflow met condities (10)

To add a workflow with conditions:

  1. Open Profit.
  2. Go to: CRM / Dossier / Configuration / Dossier item type.
  3. Open the properties of the dossier item type..
  4. Go to the tab: Workflows.
  5. Open the properties of the workflow..

    The workflow is supplied as follows:

    Ins_Workflow met condities (20)

    You add the conditions to the start of the workflow.

  6. Click on the start of the workflow, in this example, Employee declaration.

    You now open the general properties of the workflow.

  7. Use the + to open the Condition frame.

    You now see the conditions Always and Blocked supplied by default.

  8. Click on: Ins_Workflow met condities (30).
  9. Open the properties of the condition New.
  10. Change the description to  Declaratie laag (< € 25).
  11. Select Advanced filter.
  12. Select the Declaration amountfield.
  13. Select the filter value < and enter 25.

    Ins_Workflow met conditie (40)

  14. Click on: OK.
  15. Add a condition for approval by the manager:

    Ins_Workflow met condite (50)

  16. Click on: OK.
  17. Finally, add the condition for approval by the director:

    Ins_Workflow met conditie (60)

To link conditions to a workflow action:

You link the conditions for the approval of the declaration to the correct action. In this example, it is the Approved action. We are going to change the description of this task to Approve.

  1. Click on the action: Akkoord.
  2. Change the description to Approve.
  3. If required, enter the comment that you want to display to the user if he clicks this action.
  4. Select <Workflow end> in Follow-up task.

    If the declaration is approved automatically then this request is ready immediately.

  5. Select Conditional in To follow-up task if:.

    Depending on a condition, the workflow flows automatically to the end of the workflow.

  6. Select declaration low <€25 as Condition.

Record the workflow control for the workflow task:

The destination of the task (who should review the declaration) depends on the condition. You record this using a conditional destination for the appropriate workflow task. In this example, this is the Review task.

  1. Click on: Beoordelen.
  2. If necessary, fill the comment for the task.
  3. Click on:Ins_Wortkflow Beoordelen inschrijving inrichten (10) after Task intended for.

    If the declaration < €25, it is approved automatically. You would record this as follows:

  4. Place the All Profit usersgroup in the Addressed to frame.
  5. Select the condition Declaration low.

    If the declaration is between €25 and €100 then the manager reviews the declaration.

  6. Place the Management - submittergroup in the Addressed to frame.
  7. Select the condition Declaration €25 - €100.

    Declarations of more than €100 are reviewed by the director.

  8. Place the Managementgroup in the Addressed to frame.
  9. Select the condition Declaration high > €100.
  10. Click on: OK.
  11. Click on: Publish.

Directly to

  1. Add a condition to a workflow
  2. Simple definition
  3. Advanced definition
  4. Workflow with condition