[rules-dev] ;
Arjun Dhar
dhar_ar at yahoo.com
Tue May 15 00:52:18 EDT 2007
Mark Proctor <mproctor <at> redhat.com> writes:
>
> thought i couht all of these, but just found this, last time I checked
> lines ending in ; causing the parser to ignore that line? Can we warn
> when erroneous ; are used.
> rule "Collect Test" salience 70
> when
> $person : Person( name == "Bob", $likes : likes )
> $cheeseList : ArrayList(size > 2) from collect( Cheese( type ==
> $likes ) );
> then
> //System.out.println($person.getName() +" will buy "+
> $cheeseList.size() + " pieces of cheese");
> results.add($cheeseList);
> end
>
In JBoss Rules 4 the multiple assignment of a variable to an object definition
gives an error, while it worked in 3.X. Not sure what's conceptually correct:
(Have not noticed any impact yet):
rule "Collect Test" salience 70
when
$person : Person( name == "Bob", $likes : likes )
$person : Person( age== 42 )
'$person' repeated twice!
More information about the rules-dev
mailing list