Skip to main content

listDoesNotContain

A Workflow Engine function that returns true when the array field you query contains none of your specified values. Define values as an array, for example [ a ] or [ a, b, c ]. You must specify an array field, not a string.

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

The workflow sweep up filter applies to this function.

Back to Workflow Engine Functions Reference.

Arguments

Workflow Engine function listDoesNotContain takes the following arguments:

Name

Required

Type

Description

field

Yes

String

Name of the array field to check values in. You can specify custom info fields. The specified field must be an array of values not a string.

values

Yes

Object

List of values to check for, any intersection returns false. Define values as an array, for example [ a ] or [ a, b, c ].

Example

The following example demonstrates typical use of Workflow Engine function listDoesNotContain. If you want to check for the absence of an element "Network" in an array of services in custom_info, set the following:

  • field: custominfo.eventDetails.service_list

  • values: ["Network"]

The UI translates your settings to the following JSON:

{"field":"custominfo.eventDetails.service_list","values":["Network"]}

An object with the following custom_info value returns true:

"custom_info": {"eventDetails":
                    {"service_list": ["Webapp","Webserver"] }
                }

An object with the following custom_info value returns false:

"custom_info": {"eventDetails":
                    {"service_list": ["Webapp","Webserver","Network"] }
                }