Rule Builder > Business Object Models > Working With the BOM Property Sheet > Setting the update Property |
Setting the update Property |
PREVIOUS NEXT |
The update
property allows you to identify the BOM class members that carry out a modification on an object. For example, a BOM attribute can be a virtual attribute that calls a XOM method and this method could change the object. In this case the engine must be notified that it needs to reevaluate the object to update its internal state.
When a method of this type is called, and the update
property is set to true, the method call is wrapped in an IRL modify statement. For example, if there is a class Customer
that has the methods:
int getBill() alternate="the bill";
void reduceBill() alternate="reduce the bill of {this}";
If The bill of customer1 is greater than 300 Then reduce the bill of customer1
and if the reduceBill()
method has the update
property set to false, the translation to IRL will be:
when |
However, if the reduceBill()
method has the update
property set to true, the translation to IRL will be:
when |
update
property to select it.
Customer Support | Copyright © 1987-2004 ILOG S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |