checkSeverity

A Workflow Engine function that checks the severity level of the object, either as a static value, or with an operator. Returns true if the severity level matches your specified value.

This function is available as a feature of the Workflow Engine v1.1 download and later.

This function is available for event, alert, enrichment, and Situation workflows.

Back to Workflow Engine Functions Reference.Workflow Engine Functions Reference

Arguments

Workflow Engine function checkSeverity takes the following arguments:

Name

Required

Type

Description

severity

Yes

Validated String

Severity value and optional operator.

Enter a severity value between 0 and 5.

Valid operators are: >, <, >=, <=, !=, =.

Example

The following examples demonstrate typical use of Workflow Engine function checkSeverity.

If you want to check if an object has a severity level of less than 3, enter the following:

  • severity: <3

The UI translates your settings to the following JSON:

{"severity":"<3"}

Given an object with the following data:

"severity": 1

The function returns true, since the severity level is less than 3.

Now consider an object with the following:

"severity": 3

In this case the function returns false, since the severity level is not less than 3.

However, if you were to check if the object has a severity level of less than or equal to 3 (<=3), the UI would translate your settings as follows:

{"severity": "<=3"}

For the same object, the function now returns true, since your criteria now includes 3, whereas before your criteria only included values less than 3.