Using active action scripts
General rules
Scripts are the basis for implementing active actions in the Incident Manager module. Active action scripts can be used during transitions between states of the Workflow. More information about configuring workflows, as well as adding active actions to them, can be found in the corresponding article Workflow Setup.
How the action will be executed in the context of the workflow is determined by several parameters:
- execution stage (
Primary ActionsorOther Actions) - number of incidents. If there is more than one incident, then using the
Group Incidentsparameter, you can execute the action immediately for a group of incidents
Primary Actions
Primary actions are executed before changing the status of an incident or aggregation. In such actions, you can change the fields of the transmitted entity using scripts. The Group Incidents parameter does not work for such actions, and such an action is executed separately for each entity.
Other Actions
Other actions are executed after changing the status of an incident or aggregations. In such actions, you cannot change the fields of the transmitted entity using scripts. The Group Incidents parameter is available for such actions. Thus, such actions can be executed either once for all entities, or separately for each one.
Useful information about the difference between these two types of actions is contained in the article Active Actions.