Actions

Actions are Rule language constructs that enable you to perform operations on variable values, such as setting values, performing calculations, or manipulating lists.

set <variable> to <value> ;

Use the set construct to assign a value to a variable. You can also explicitly set a variable to null by using set <variable> to null ;

Example
The following example calculates the product of price and quantity and assigns the result to the result variable:
set result to the price of the item * the quantity ;

add <object> to <variable> ;

Use the add construct to add an item to a list.

Example
add the customer to the participants of the meeting ;

remove <object> from <variable>

Use the remove construct to remove an item from a list.

Example
remove the expired coupon from the discounts of the cart ;