Class PersistableRunner

  • All Implemented Interfaces:
    org.drools.core.command.SingleSessionCommandService, org.drools.core.runtime.InternalLocalRunner, org.kie.api.runtime.CommandExecutor, org.kie.api.runtime.ExecutableRunner<org.kie.api.runtime.RequestContext>

    public class PersistableRunner
    extends Object
    implements org.drools.core.command.SingleSessionCommandService
    • Constructor Detail

      • PersistableRunner

        public PersistableRunner​(org.kie.api.KieBase kbase,
                                 org.kie.api.runtime.KieSessionConfiguration conf,
                                 org.kie.api.runtime.Environment env)
      • PersistableRunner

        public PersistableRunner​(Long sessionId,
                                 org.kie.api.KieBase kbase,
                                 org.kie.api.runtime.KieSessionConfiguration conf,
                                 org.kie.api.runtime.Environment env)
    • Method Detail

      • checkEnvironment

        public void checkEnvironment​(org.kie.api.runtime.Environment env)
      • initNewKnowledgeSession

        protected void initNewKnowledgeSession​(org.kie.api.KieBase kbase,
                                               org.kie.api.runtime.KieSessionConfiguration conf)
      • initExistingKnowledgeSession

        protected void initExistingKnowledgeSession​(Long sessionId,
                                                    org.kie.api.KieBase kbase,
                                                    org.kie.api.runtime.KieSessionConfiguration conf,
                                                    org.drools.persistence.api.PersistenceContext persistenceContext)
      • initTransactionManager

        public void initTransactionManager​(org.kie.api.runtime.Environment env)
      • isSpringTransactionManager

        public static boolean isSpringTransactionManager​(Class<?> clazz)
      • createContext

        public org.kie.api.runtime.RequestContext createContext()
        Specified by:
        createContext in interface org.kie.api.runtime.ExecutableRunner<org.kie.api.runtime.RequestContext>
      • getChainableRunner

        public org.drools.core.runtime.ChainableRunner getChainableRunner()
      • execute

        public org.kie.api.runtime.RequestContext execute​(org.kie.api.runtime.Executable executable,
                                                          org.kie.api.runtime.RequestContext ctx)
        Specified by:
        execute in interface org.kie.api.runtime.ExecutableRunner<org.kie.api.runtime.RequestContext>
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.drools.core.command.SingleSessionCommandService
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.drools.core.command.SingleSessionCommandService
      • getSessionId

        public Long getSessionId()
        Specified by:
        getSessionId in interface org.drools.core.command.SingleSessionCommandService
      • getKieSession

        public org.kie.api.runtime.KieSession getKieSession()
        Specified by:
        getKieSession in interface org.drools.core.command.SingleSessionCommandService
      • addInterceptor

        public void addInterceptor​(org.drools.core.runtime.ChainableRunner interceptor)
      • addInterceptor

        protected void addInterceptor​(org.drools.core.runtime.ChainableRunner interceptor,
                                      boolean store)