Workflow rules

Integrate complex processes using customised workflow rules

How it works

Workflow Rules in Dastra are a set of actions (email notifications, audit scheduling, tasks and field updates) that are executed when certain conditions are met. These rules automate the process of sending email notifications, assigning tasks and updating certain fields in a record when a rule is triggered.

Diagram of the basic principle

How do I create a workflow rule in Dastra?

Defining the trigger

You can trigger a workflow rule on two events:

  • When an action is taken on the entity concerned: creation, modification, state change or recycle bin (if available) .

  • When a specific date for the entity is reached. For example: send a notification 10 days after the publication date.

Only one trigger can be defined per workflow rule.

Note that you can choose whether the workflow can be run more than once per entity. It is strongly recommended that workflows are executed only once per entity, as executing a workflow several times can easily lead to problems of repetitive task creation or duplicate notifications.

Defining conditions

You can configure one or more execution conditions per rule.

Defining actions

To add a new action, click on the "Add an action" button and choose the model you wish to set up

Here are the different types of action you can trigger:

  • Email notification

  • Update a field in the entity concerned

  • Add a tag to the entity

  • Automatic audit scheduling

  • Define the owner of the item (the assigned person, for example)

  • Automatic creation of a task

Conditions can be chained together. You can add several actions per condition by clicking on "add an action" again.

Example: send a notification to several people when a task is created. To do this, select the "tasks" trigger and, depending on the conditions of the task (for example, adding a tag), add a "notification" action.

Custom variables

Very often, in personalised notifications for example, it will be useful to inject information from the object that is entered in the workflow: the name of the processing, its publication date, etc. are all variables that you can easily inject into the text of your notifications using the variable injection system.

Internally, Dastra uses a templating engine based on LiquidJS

To access the different variables in the trigger object, type "{{". This will display a list of suggested variables that you can inject into the content.

Dernière mise à jour