Interface InternalMatch

All Superinterfaces:
Match, Queue.QueueEntry, Serializable
All Known Implementing Classes:
RuleTerminalNodeLeftTuple

public interface InternalMatch extends Serializable, Queue.QueueEntry, Match
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 Details

    • getRule

      RuleImpl getRule()
      Specified by:
      getRule in interface Match
      Returns:
      The rule that was activated.
    • 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

      void setCallback(Runnable callback)
    • getObjectsDeep

      default List<Object> getObjectsDeep()
    • getTuple

      TupleImpl getTuple()
      Retrieve the Tuple that was activated.
      Returns:
      The tuple.
    • getPropagationContext

      PropagationContext getPropagationContext()
      Retrieve the PropagationContext for the Activation
      Returns:
      The propagation context
    • remove

      void remove()
      Cancel the Activation by removing it from the Agenda.
    • getAgendaGroup

      InternalAgendaGroup getAgendaGroup()
    • getActivationGroupNode

      ActivationGroupNode getActivationGroupNode()
    • setActivationGroupNode

      void setActivationGroupNode(ActivationGroupNode activationGroupNode)
    • getActivationNode

      ActivationNode getActivationNode()
    • setActivationNode

      void setActivationNode(ActivationNode ruleFlowGroupNode)
    • getActivationFactHandle

      InternalFactHandle getActivationFactHandle()
    • isMatched

      boolean isMatched()
    • setMatched

      void setMatched(boolean matched)
    • isActive

      boolean isActive()
    • setActive

      void setActive(boolean active)
    • setActivationFactHandle

      void setActivationFactHandle(InternalFactHandle factHandle)
    • getRuleAgendaItem

      RuleAgendaItem getRuleAgendaItem()
    • getTerminalNode

      TerminalNode getTerminalNode()
    • toExternalForm

      String toExternalForm()
    • getFactHandles

      default List<FactHandle> getFactHandles(Tuple tuple)
    • getObjectsDeep

      default List<Object> getObjectsDeep(TupleImpl entry)
    • getObjects

      default List<Object> getObjects(Tuple tuple)
    • checkProcessInstance

      default boolean checkProcessInstance(ReteEvaluator workingMemory, String processInstanceId)