Interface RuleRuntime

    • Method Detail

      • halt

        void halt()

        Request the engine to stop firing rules. If the engine is currently firing a rule, it will finish executing this rule's consequence before stopping.

        This method will not remove active Matches from the Agenda. In case the application later wants to continue firing rules from the point where it stopped, it should just call org.kie.api.runtime.KieSession#fireAllRules() or org.kie.api.runtime.KieSession#fireUntilHalt() again.

      • getAgenda

        Agenda getAgenda()
        Returns:
        a reference to this session's Agenda.
      • getEntryPoint

        EntryPoint getEntryPoint​(java.lang.String name)
        Returns:
        the WorkingMemoryEntryPoint instance associated with the given name.
      • getEntryPoints

        java.util.Collection<? extends EntryPoint> getEntryPoints()
        Returns a collection of all available working memory entry points for this session.
        Returns:
        the collection of all available entry points for this session
      • getQueryResults

        QueryResults getQueryResults​(java.lang.String query,
                                     java.lang.Object... arguments)
        Retrieve the QueryResults of the specified query and arguments
        Parameters:
        query - The name of the query.
        arguments - The arguments used for the query
        Returns:
        The QueryResults of the specified query. If no results match the query it is empty.
        Throws:
        java.lang.RuntimeException - If the query does not exist