RuleSet | Cheese rules | |
Import | com.xxx.entity.Cheese | |
Variables | ||
Sequential | TRUE | |
RuleTable Rules for Cheese | ||
CONDITION | ACTION | |
$c : Cheese | $c | |
$price : price > | setPrice($price * $1) | |
0 | 2 |
From: jojolemariole@hotmail.com
To: rules-users@lists.jboss.org
Date: Mon, 7 Apr 2008 08:56:34 +0000
Subject: [rules-users] decision tables and attributes as parameters in function calls
hi,I have no problem for this kind of rule :but I would like to know what is the decision table for this small rule
rule "Primitive support"
when
$c : Cheese( price < 10 )
then
$c.setPrice( 10 )
endrule "Primitive support"
when
$c : Cheese( $price : price )
then
$c.setPrice( $price * 2 )
end
I've tried a lot of syntax and I read the section abour the decision table in the manual but i
didnt find anything.
Centralisez tous vos comptes mails dans Hotmail ! Créez un compte Hotmail, c'est gratuit !