It is possible to configure Athento so that when a document transitions to a certain state, automatic operations are executed.
The automatic operation must be active in the space where the form is going to be used for which you want to configure this behavior.
To make an operation execute when the document transitions to a certain state, from the lifecycle configuration, go to the state where you want the automation to execute and click on the three dots that appear next to the button to create a transition.
Select the option Edit operations.
Next, in the pop-up window, you can select the automations you want to execute.
Exactly when does an active automation execute in a lifecycle state?
There are two different moments when automations can be executed:
- Before reaching the state: the automations execute during the transition, right before the lifecycle state changes to this state. This is the default behavior.
- After reaching the state: the automations execute once the document's lifecycle state updates to the state where the automation has been configured.
This distinction is important, for example, if dynamic lifecycle changes are executed with an automation.
IMPORTANT!
Automations do not execute in the first lifecycle state, only
in states that can be reached through a transition.
Related articles
What options do I have to execute operations in the first lifecycle state?