Interface InternalMatch

  • All Superinterfaces:
    org.kie.api.runtime.rule.Match, Queue.QueueEntry, java.io.Serializable
    All Known Implementing Classes:
    RuleTerminalNodeLeftTuple

    public interface InternalMatch
    extends java.io.Serializable, Queue.QueueEntry, org.kie.api.runtime.rule.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 Detail

      • getRule

        org.drools.base.definitions.rule.impl.RuleImpl getRule()
        Specified by:
        getRule in interface org.kie.api.runtime.rule.Match
        Returns:
        The rule that was activated.
      • getConsequence

        org.drools.base.rule.consequence.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

        java.lang.Runnable getCallback()
      • setCallback

        void setCallback​(java.lang.Runnable callback)
      • getObjectsDeep

        default java.util.List<java.lang.Object> getObjectsDeep()
      • getTuple

        Tuple 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.
      • setActivationGroupNode

        void setActivationGroupNode​(ActivationGroupNode activationGroupNode)
      • setActivationNode

        void setActivationNode​(ActivationNode ruleFlowGroupNode)
      • isMatched

        boolean isMatched()
      • setMatched

        void setMatched​(boolean matched)
      • isActive

        boolean isActive()
      • setActive

        void setActive​(boolean active)
      • setActivationFactHandle

        void setActivationFactHandle​(InternalFactHandle factHandle)
      • toExternalForm

        java.lang.String toExternalForm()
      • getFactHandles

        default java.util.List<org.kie.api.runtime.rule.FactHandle> getFactHandles​(Tuple tuple)
      • getObjectsDeep

        default java.util.List<java.lang.Object> getObjectsDeep​(LeftTuple entry)
      • getObjects

        default java.util.List<java.lang.Object> getObjects​(Tuple tuple)
      • checkProcessInstance

        default boolean checkProcessInstance​(ReteEvaluator workingMemory,
                                             java.lang.String processInstanceId)