Package org.drools.core.rule.consequence
Interface KnowledgeHelper
- All Superinterfaces:
ConsequenceContext,KieContext,RuleContext,Serializable
KnowledgeHelper implementation types are injected into consequenses
instrumented at compile time and instances passed at runtime. It provides
convenience methods for users to interact with the WorkingMemory.
Of particular interest is the update method as it allows an object to be modified without having to specify the facthandle, because they are not passed to the consequence at runtime. To achieve this the implementation will need to lookup the fact handle of the object form the WorkingMemory.
-
Method Summary
Modifier and TypeMethodDescriptiongetMatch()default voidrestoreActivationOnConsequenceFailure(InternalMatch internalMatch) voidsetActivation(InternalMatch internalMatch) Methods inherited from interface org.drools.base.rule.consequence.ConsequenceContext
bolster, bolster, delete, delete, delete, delete, don, don, don, don, don, don, don, get, getChannel, getChannels, getContext, getDeclaration, getEntryPoint, getFactHandle, getFactHandle, getRequiredDeclarations, getRule, getTuple, guard, guard, halt, insert, insert, insertAsync, insertLogical, insertLogical, insertLogical, insertLogical, reset, retract, retract, run, run, run, setFocus, shed, shed, update, update, update, update, updateMethods inherited from interface org.kie.api.runtime.KieContext
getKieBase, getKieRuntime, getKnowledgeRuntimeMethods inherited from interface org.kie.api.runtime.rule.RuleContext
blockMatch, cancelMatch, insertLogical, unblockAllMatches
-
Method Details
-
setActivation
-
getActivation
InternalMatch getActivation() -
restoreActivationOnConsequenceFailure
-
getWorkingMemory
WorkingMemory getWorkingMemory() -
getMatch
InternalMatch getMatch()- Specified by:
getMatchin interfaceConsequenceContext- Specified by:
getMatchin interfaceRuleContext
-
getProjectClassLoader
ClassLoader getProjectClassLoader()- Specified by:
getProjectClassLoaderin interfaceConsequenceContext
-