haveTeamsChanged
The haveTeamsChanged
action detects any changes to a Situation’s Teams. This includes both additions to and removals of Teams. This action adds a list of the added and removed teams to the workflowContext
for subsequent actions to use.
This action should always be preceded in the workflow by the sigActionFilter
action with the actionTypes
argument set to include “Situation Teams Changes”.
Changes to the teams are added to the workflowContext
under the teamsAdded
and teamsRemoved
keys.
This function is available as a feature of the Add-ons v2.1 download and later.
This function is available for Situation workflows only.
Back to Workflow Engine Functions Reference.
Arguments
Workflow Engine function haveTeamsChanged
has no arguments.
Example
To detect whether a Situation’s team was altered, a SigAction-based engine would contain a workflow with the following actions:
sigActionFilter
actionTypes : [ “Situation Teams Changes” ]
teamsChanged
If the Situation teams changed (via the UI, APIs or standard workflow), the workflowContext
would contain these details:
{ "teamsAdded": [ "test" ], "teamsRemoved": [ "test1" ] }
Here Teams were both added and removed.