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 build a rule which has 'from' keyword. Is it supported in
Guvnor ?
Also I am not able to achieve the combination of NOT & FROM in a business
rule.
Is it possible ?
------------------------------------------------------------------------------------
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
------------------------------------------------------------------------------------