Skip to main content

unsetMasterAlert

A Workflow Engine function that clears the master alert for a given Situation. It runs exclusively within a Situation Inform–based workflow and executes in the context of a Situation. The function updates the in-scope Situation by setting the custom_info.mooghandling.master_alert field to null.

This function is available as a feature of the Add-ons v2.7 download and later.

This function is available for Situation workflows only.

Back to Workflow Engine Functions Reference.

Unset Master Alert Manually

To unset a Master Alert manually, follow the steps below:

  1. Open the required Situation.

  2. Right-click the situation, and then select Tools > Unset Master Alert.

    Tool_unsetmasteralert.png
  3. Click Run to submit the request.

    Tool_unsetmasteralert1.png

Note

You can manually override the master alert selection by using the Unset Master Alert tools available from the right-click Tools menu.

Arguments

Workflow Engine function unsetMasterAlert has no arguments.

Example

The following example demonstrates typical use of Workflow Engine function unsetMasterAlert.

To unset the master alert for Situation 738, the Graze call sendToWorkflow would be used with the following parameters:

{ 
	"engine_name" : "Situation Inform Engine",
	"workflow_name" : "unsetMasterAlert",	
	"sitn_id" : 738,
	"context" : {}
}

The sitn_id body attribute identifies the in-scope Situation. You do not need to provide the alert ID to remove it.