Hi All,
As per as my understanding, we cannot call a function from the when part of
a rule.
But my requirement is,
*/function boolean sampleFunction(){
//do something
return true/false;
}
rule "sample"
when
sampleFunction();
then
//Take some action
end/*
Thanks in advance.
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.