[rules-users] Calling a function from When part

RulesUsers agrawalmanisha26 at gmail.com
Mon Aug 6 03:34:45 EDT 2012


Hey laune, I think we are mixing up the things.
My requirement is to call a method in an helper class, that in turn accesses
the db. 


Currently i have done with 
  */evel(functionCall() )/* //The return type of the method is boolean

*But the problem is, once the control enters WHEN part of the rule it making
multiple calls to this method ( checked by putting in SYSO statements). But
i want this call to take place once.*


So it will be very helpful, if any once can suggest me any other way to make
function call from when part.
Also tried with 

/*$A : Boolean() from functionCall( )
eval( $A )*/


But the result is same.

Also please provide your inputs if it is not possible to handle the problem,
where in it make multiple function call.


Regards,
Sam



--
View this message in context: http://drools.46999.n3.nabble.com/Calling-a-function-from-When-part-tp4018987p4019024.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list