[rules-users] Drools Queries with relation to the LHS and RHS syntax of the rule

Dibya dibya.tcs at gmail.com
Thu Aug 11 06:52:58 EDT 2011


Thanks ..

Just to summarize :

My modified drl file should be looking something like this (for both the
requirements mentioned). Could you pls verify :

===============================================================================
package application.rules

global application.customresults.ProjectResults  projRes ;

import application.custom.Project;

rule "project-1.option1"

when
$proj : Project();
eval ($proj.getStringValue("Drools") .equals ("ABC")) 

then
projRes.setResult("Drools project");  

end

rule "project-1.option2"

when

$proj : Project();
eval ($proj.getStringValue("Java") .equals ("DEF")) 

then
projRes.setResult("Java project");

end
===============================================================================


--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Queries-with-relation-to-the-LHS-and-RHS-syntax-of-the-rule-tp3244097p3245563.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list