Thanks a lot, I will try this.

From: [EMAIL PROTECTED]
To: rules-users@lists.jboss.org
Subject: RE: [rules-users] decision tables and attributes as parameters in      
function calls
Date: Mon, 7 Apr 2008 14:31:49 +0000








Jonathan,

 

The decision table mandates atleast one condition. I have faced this problem 
before. Assuming you always have some +ve value for cheese.price, do you want 
to try following?

 

 

 









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





Thanks

mahesh



From: [EMAIL PROTECTED]
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 :

rule "Primitive support"
when
    $c : Cheese( price < 10 )
then
    $c.setPrice( 10 )
end 
but I would like to know what is the decision table for this small rule

rule "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 ididnt find anything.


Centralisez tous vos comptes mails dans Hotmail ! Créez un compte Hotmail, 
c'est gratuit ! 
Exclusive Marriage Proposals!
Find UR life partner at Shaadi.com Try it!

_________________________________________________________________
Avec Hotmail, vos e-mails vous suivent partout ! Mettez Hotmail sur votre 
mobile !
http://www.messengersurvotremobile.com/?d=hotmail
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to