set (variable) to (value)
This construct sets the value of an entity.
Purpose
You use this construct in the action part of a rule to set the value of the bound entity.
Syntax
set <variable> to <value>;
Description
The variable can be set to a literal value, an expression, or a list.
Example
The following action sets the value of a new account entity.
when a new account event occurs, called 'the event' if 'the account' is null then set 'the account' to a new account where the customer is the customer of 'the event', the opening date is 'the event', the status is NEW;