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-tp4018987.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to