Class VisitedAgendaGroup

  • All Implemented Interfaces:
    java.io.Serializable, Activation, org.kie.api.runtime.rule.Match

    public class VisitedAgendaGroup
    extends java.lang.Object
    implements Activation
    See Also:
    Serialized Form
    • Method Detail

      • getRule

        public RuleImpl getRule()
        Specified by:
        getRule in interface Activation
        Specified by:
        getRule in interface org.kie.api.runtime.rule.Match
        Returns:
        The rule that was activated.
      • getActivationNumber

        public long getActivationNumber()
        Description copied from interface: Activation
        Each PropgationContext 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 PropgationContext will return the same long for this method.
        Specified by:
        getActivationNumber in interface Activation
        Returns:
        The activation number
      • getTuple

        public LeftTuple getTuple()
        Description copied from interface: Activation
        Retrieve the Tuple that was activated.
        Specified by:
        getTuple in interface Activation
        Returns:
        The tuple.
      • remove

        public void remove()
        Description copied from interface: Activation
        Cancel the Activation by removing it from the Agenda.
        Specified by:
        remove in interface Activation
      • setQueued

        public void setQueued​(boolean activated)
        Specified by:
        setQueued in interface Activation
      • setMatched

        public void setMatched​(boolean matched)
        Specified by:
        setMatched in interface Activation
      • setActive

        public void setActive​(boolean active)
        Specified by:
        setActive in interface Activation
      • getFactHandles

        public java.util.List<? extends org.kie.api.runtime.rule.FactHandle> getFactHandles()
        Specified by:
        getFactHandles in interface org.kie.api.runtime.rule.Match
      • getObjects

        public java.util.List<java.lang.Object> getObjects()
        Specified by:
        getObjects in interface org.kie.api.runtime.rule.Match
      • getDeclarationIds

        public java.util.List<java.lang.String> getDeclarationIds()
        Specified by:
        getDeclarationIds in interface org.kie.api.runtime.rule.Match
      • getDeclarationValue

        public java.lang.Object getDeclarationValue​(java.lang.String s)
        Specified by:
        getDeclarationValue in interface org.kie.api.runtime.rule.Match