[rules-users] Not able to achieve combination of NOT & FROM keyword in a brl through Guvnor

Harshit Bapna hrbapna at gmail.com
Mon Jan 17 02:01:53 EST 2011


 Hello All,

>From the Expert documentation, I am trying to create the rule(below) in
Guvnor
 Guvnor Version : 5.1.1

I am not able to achieve the combination of NOT & FROM in a business rule.
*Is it possible to create the below drl rule into a brl rule in Guvnor?*

------------------------------------------------------------------------------------
package org.drools;

rule "Avoid NPE on wrong syntax"
   when
     *not*( Cheese( ( type == "stilton" && price == 10 ) || ( type == "brie"
&& price == 15 ) ) *from* $cheeseList )
   then
     System.out.println("OK");
end
------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110117/4b922077/attachment.html 


More information about the rules-users mailing list