Workflow rules
Integrate complex processes using customised workflow rules
Dernière mise à jour
Integrate complex processes using customised workflow rules
Dernière mise à jour
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.
Click on "New workflow rule".
Choose a name and the type of entity concerned (Processing, Violations, etc.)
You are now in the rules designer
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.
You can configure one or more execution conditions per rule.
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.
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.
Example To display a string variable (the processing reference)
To display all the values of an array variable (tags)
To display only the 1st value of an array variable: (1st accountable)