Package org.drools.core.rule.consequence
Interface InternalMatch
- All Superinterfaces:
Match,Queue.QueueEntry,Serializable
- All Known Implementing Classes:
RuleTerminalNodeLeftTuple
When a
Tuple fully matches a rule it is added to the Agenda
As an Activation. Each Activation is assigned a number, this
number is determined by the WorkingMemory all Activations created
from a single insert, update, retract are assigned the same Activation number.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancheckProcessInstance(ReteEvaluator workingMemory, String processInstanceId) longEach PropagationContext is assigned an id from a counter for the WorkingMemory action it represents.default List<FactHandle>getFactHandles(Tuple tuple) getObjects(Tuple tuple) getObjectsDeep(TupleImpl entry) Retrieve thePropagationContextfor theActivationgetRule()getTuple()Retrieve theTuplethat was activated.booleanisActive()booleanvoidremove()Cancel theActivationby removing it from theAgenda.voidsetActivationFactHandle(InternalFactHandle factHandle) voidsetActivationGroupNode(ActivationGroupNode activationGroupNode) voidsetActivationNode(ActivationNode ruleFlowGroupNode) voidsetActive(boolean active) voidsetCallback(Runnable callback) voidsetMatched(boolean matched) Methods inherited from interface org.kie.api.runtime.rule.Match
getDeclarationIds, getDeclarationValue, getFactHandles, getObjects, getSalienceMethods inherited from interface org.drools.core.util.Queue.QueueEntry
dequeue, getQueueIndex, isQueued, setQueued, setQueueIndex
-
Method Details
-
getRule
RuleImpl getRule() -
getConsequence
Consequence getConsequence() -
getActivationNumber
long getActivationNumber()Each PropagationContext is assigned an id from a counter for the WorkingMemory action it represents. All Activations return this id as the ActivationNumber, thus all Activations created from the same PropagationContext will return the same long for this method.- Returns:
- The activation number
-
getCallback
Runnable getCallback() -
setCallback
-
getObjectsDeep
-
getTuple
TupleImpl getTuple()Retrieve theTuplethat was activated.- Returns:
- The tuple.
-
getPropagationContext
PropagationContext getPropagationContext()Retrieve thePropagationContextfor theActivation- Returns:
- The propagation context
-
remove
void remove()Cancel theActivationby removing it from theAgenda. -
getAgendaGroup
InternalAgendaGroup getAgendaGroup() -
getActivationGroupNode
ActivationGroupNode getActivationGroupNode() -
setActivationGroupNode
-
getActivationNode
ActivationNode getActivationNode() -
setActivationNode
-
getActivationFactHandle
InternalFactHandle getActivationFactHandle() -
isMatched
boolean isMatched() -
setMatched
void setMatched(boolean matched) -
isActive
boolean isActive() -
setActive
void setActive(boolean active) -
setActivationFactHandle
-
getRuleAgendaItem
RuleAgendaItem getRuleAgendaItem() -
getTerminalNode
TerminalNode getTerminalNode() -
toExternalForm
String toExternalForm() -
getFactHandles
-
getObjectsDeep
-
getObjects
-
checkProcessInstance
-