[rules-users] Declaring Variables in Condition

Kris Verlaenen kris.verlaenen at cs.kuleuven.be
Mon May 26 08:56:11 EDT 2008


> [consequence][]Create a new Item {item}={item}=new Object();

Note that "$item1=new Object();" is no valid code, you should also define 
the class of your new object (at least using the Java syntax).

Type something like this:

    [consequence][]Create a new Item {item}=Item {item}=new Item();
    [consequence][]Set name of {item} to {value}={item}.setValue({value});

If you have an Item class that has a default constructor and a 
setValue(Object) method, this should work.

Kris 




More information about the rules-users mailing list