[rules-users] rules not wrking

Esteban Aliverti esteban.aliverti at gmail.com
Fri Apr 30 18:06:42 EDT 2010


Please remember that rules' conditions are evaluated when you
insert/modify/retract a Fact and not when you call fireAllRules().


On Fri, Apr 30, 2010 at 2:54 PM, John Peterson <
john.peterson.gv3k at statefarm.com> wrote:

> If you really wanted to see your text string there, you might be able to
> invoke a method that takes that text string and prints it and then
> returns "true" in all cases.  You'd most likely need to put it in an
> Eval as suggested below.
>
>
> >You can't directly use java code inside the LHS of a rule. You can
> though
> >use eval to call a java method inside your LHS. Also remember that you
> don't
> >have to use ; in the patterns.
> >
> >2010/4/30 Puneet duggal <duggalpunit at gmail.com>
> >
> >> frnds i have a rule
> >>
> >> and its not working and i  for checking i have put a Sop in my  when
> but
> >> it not  prints  the
> >> Inside Area_SqFt_1_10-01-09_12-31-14
> >> so how can we put SOP inside when clause.
> >>
> >> rule "Area_SqFt_1_10-01-09_12-31-14"
> >>
> >> date-effective "01-Oct-2009" date-expires "31-Dec-2014" salience 6
> >>
> >> no-loop true
> >>
> >> when
> >>
> >> System.out.println("Inside Area_SqFt_1_10-01-09_12-31-14");
> >>
> >> objectP2483 : Para_2483( (fid2335=="Block") && (fid2336==16) );
> >>
> >> then
> >>
> >> System.out.println("Area_SqFt_1_10-01-09_12-31-14");
> >>
> >> objectP2483.setFid31003(new Double(497)); end
> >>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100430/c6918d1c/attachment.html 


More information about the rules-users mailing list