With the Branches component you can split a workflow according to conditions. One option is to branch according to the segmentations of the user who made the request, as well as by the request fields or profile fields.
- Go to admin.humand.co and open Service management > Workflows.
- Open the workflow where you want to add the branching with Edit.
- Click the + button between two components. Add component opens.
- Under Logic, choose Branches: it splits the workflow according to the conditions you configure.
- In the Branching panel, under Branch 1, complete the condition: When > field > Condition > Value.
- In the field selector choose Segmentations and then the segmentation (for example, Nivel).
- In Condition choose an option: Includes, Not included, It's empty or It isn't empty.
- Define the Value. With New condition you add another condition to the branch and with New branch you create another one.
- Click Add.
Branches are evaluated in the order they appear. The last one, None of the above (marked Default), receives everyone who does not meet any previous condition.
Condition types
In the field selector you can choose between three types:
| Type | Description |
|---|---|
| Request fields | Branches according to the values entered in the request form. |
| Profile fields | Branches according to fields of the collaborator's profile. |
| Segmentations | Branches according to the segmentation the user belongs to (Área, Nivel, País, Sede, Turno, etc.). |