there is no (object)

This construct tests whether a dataset contains no objects of the given type.

Purpose

You use this construct to determine whether the current dataset or the specified collection contains no occurrences of a particular object.

Syntax

there is no <object> [in <list>] [where <tests>,*]

Description

Use the optional in clause to apply the test to a specific collection of objects. Use one or more optional where clauses to filter the objects to be counted with one or more conditions.

This construct can only be used in the if part of a rule.

Example

The following condition tests that there is no object of type Customer in the object set provided to the rule engine for execution.

if
   there is no customer where...
then...