set (variable) to null

The set <variable> to null construct sets the value of a variable to null. Use this construct to delete the bound entity of an agent.

Purpose

You use this construct in the action part of a rule to delete the bound entity, and end the lifecycle of this entity.

Syntax

set <variable> to null

Description

The set <variable> to null construct sets a project variable to no value.

<variable> refers to the variable of bound entity that is referenced in the agent descriptor file.

Example

In the following example, the variable 'the account' refers to the bound entity of an account agent. The lifecycle of the account entity ends when the account closure event happens.

when an account closure event occurs, called 'the event'
then
    set 'the account' to null;