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

Wolfgang Laun wolfgang.laun at gmail.com
Thu Aug 11 07:05:16 EDT 2011


Looks OK.
-W

On 11 August 2011 12:52, Dibya <dibya.tcs at gmail.com> wrote:

> 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.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110811/f31ebdce/attachment.html 


More information about the rules-users mailing list