You can get a reference to the KnowledgeHelper in the RHS of a rule simply
using the variable-like "drools". It exposes the WorkingMemory methods you
need. You can then pass it to your function:
function void x( ..., KnowledgeHelper kh ) {
...
kh.insertLogical(...)
}
rule "y"
when
....
then
x( ..., drools );
end
--
View this message in context:
http://drools.46999.n3.nabble.com/Drool-Function-error-tp3788965p3789051....
Sent from the Drools: User forum mailing list archive at
Nabble.com.