haveServicesChanged
A Workflow Engine function that detects whether the Services for a Situation have changed (added to or removed from). If there are no changes, the action returns false. If there are either additions or deletions, the action returns true. The list of additions and removals is written to the workflowContext
under the servicesAdded
and servicesRemoved
keys.
This function should be in a Situation action-driven workflow engine and should be preceded by the sigActonFilter
action with the actionType
argument set to include “Changed Situation Services”.
This function is available as a feature of the Add-ons v2.2 download and later.
This function is available for Situation workflows only.
Back to Workflow Engine Functions Reference.
Arguments
Workflow Engine function haveServicesChanged
has no arguments.
Example
To detect if a Situation’s services were altered, a SigAction-based engine would contain a workflow with the following actions:
sigActionFilter
actionTypes : [ “Changed Situation Services” ]
haveServicesChanged
If the Situation services changed (via the UI, APIs or standard workflow), the workflowContext
would contain these details:
{ "servicesRemoved": [ "Manager2" ], "servicesAdded": [ "Manager" ] }
Here Services were both added and removed.