[rules-users] Drool Function error

Davide Sottara dsotty at gmail.com
Wed Feb 29 18:49:44 EST 2012


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



More information about the rules-users mailing list