java - Is there an equivalent of method WorkingMemory.assertObject in Drools 6.0.1? -
i'm trying upgrade app drools 2.0 6.0.1. in code, have :
workingmem.assertobject(fact);
the thing there no longer assertobject method in workingmemory class.
according this website, method :
"objects asserted workingmemory, allows rule-engine aware of existence, , fact handle returned reference. once asserted, fact may used satisfy portion of rule's activation condition."
i can't find equivalent in drools 6.0.1. there way around ?
you'll find method - renamed insert due obvious clash assert - in interface org.kie.api.runtime.rule.entrypoint
:
facthandle insert(object object) inserts new fact entry point parameters: object - fact inserted returns: fact handle created given fact
entrypoint extended interface kiesession
, pivot object fact storage , engine activation.
Comments
Post a Comment