Interface RuleContext

    • Method Detail

      • getRule

        Rule getRule()
        Returns:
        the active Rule for the current context
      • getMatch

        Match getMatch()
        Returns:
        the current Match for the current context
      • insertLogical

        FactHandle insertLogical​(java.lang.Object object)
        Logically inserts a fact into the KieSession, justified by the current rule context.
        Parameters:
        object - the fact to insert into the kie session
      • insertLogical

        FactHandle insertLogical​(EntryPoint entryPoint,
                                 java.lang.Object object)
        Logically inserts a fact into the given EntryPoint, justified by the current rule context.
        Parameters:
        entryPoint - the EntryPoint where to logical inserting the given fact
        object - the fact to insert into the kie session
      • blockMatch

        void blockMatch​(Match match)
        This is an experimental feature that must be explicitly enabled via DeclarativeAgendaOption, which is off by default. This method may change or disable at any time.
        Parameters:
        match -
      • unblockAllMatches

        void unblockAllMatches​(Match match)
        This is an experimental feature that must be explicitly enabled via DeclarativeAgendaOption, which is off by default. This method may change or disable at any time.
        Parameters:
        match -
      • cancelMatch

        void cancelMatch​(Match match)
        This is an experimental feature that must be explicitly enabled via DeclarativeAgendaOption, which is off by default. This method may change or disable at any time.
        Parameters:
        match -