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-tp401...
Sent from the Drools: User forum mailing list archive at
Nabble.com.