[rules-users] Creating excel decision tables

Jeffrey Schneller jeffrey.schneller at envisa.com
Tue Feb 2 17:05:10 EST 2010


How would you create something similar the below rules in a decision
table.  The value of the ChoiceOption is actually an Interface which
OptionValue and ItemValue bath implement.  Any ideas? 

Thanks.

 

rule 'test'

dialect 'mvel'

when

        $o : ChoiceOption(sku=="mount")   

        OptionValue(value == "inside") from $o.value

then

                log("works");

end

 

rule 'test2'

dialect 'mvel'

when

        $o : ChoiceOption(sku=="opt3")       

        ItemValue(value == "123") from $o.value

then

                log("works");

end

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100202/82615f0d/attachment.html 


More information about the rules-users mailing list