Moogsoft Docs

getSituationFlags

A Workflow Engine function that retrieves the Situation flags and stores them in the workflowContext for subsequent actions to use. The function stores the flags in the workflowContext under workflowContext.situationFlags.

This function is available as a feature of the Workflow Engine v1.1 download. See Update the Workflow Engine for information on how to upgrade.

This function is available for Situation workflows only.

Back to Workflow Engine Functions Reference.

Arguments

Workflow Engine function getSituationFlags has no arguments.

Example

The following example demonstrates typical use of Workflow Engine function getSituationFlags. A Situation with the flag TICKETING produces the following result:

{
    "situationFlags": [
        "TICKETING"
    ]
}