Thank you~
--
View this message in context:
http://drools.46999.n3.nabble.com/Drool-Function-error-tp3788965p3789874.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https
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