[rules-users] Calling a method in when part

Sachin Thapa sachin_kt at yahoo.com
Wed Aug 10 11:45:38 EDT 2011


There are two things:

1. You want to call this method when a condition is satisfied 
2. You want to check this condition and do something.

If you want to do '1'

when
  <<condition>>
then
   boolean val = c.getValueBoolean("string");
end

if you want to do '2'

when
   eval(c.getValueBoolean("string"))
then
   <<action>>
end

I am not sure what you want to do about of these two, hope this helps. If i
have not understand your problem could you please provide more details will
try to post solution.

Regards,
Sachin
http://technologistics.blogspot.com/

--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-Calling-a-method-in-when-part-tp3241883p3242981.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list