org.jbpm.integration.console
Class StatefulKnowledgeSessionUtil
java.lang.Object
org.jbpm.integration.console.StatefulKnowledgeSessionUtil
public class StatefulKnowledgeSessionUtil
- extends Object
This takes care of the (stateful knowledge) session initialization and holder logic
for the CommandDelegate class.
The class is designed to work as a static instance.
Lastly, parts of the drools/jbpm infrastructure need a Session instance to exist in order for certain
things, like timer job events, to be able to occur. (This may/hopefully will change in the future). This is
why we keep one static instance of a ksession open and available all the time.
StatefulKnowledgeSessionUtil
protected StatefulKnowledgeSessionUtil()
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize in class Object
- Throws:
Throwable
dispose
protected void dispose()
getStatefulKnowledgeSession
public static org.drools.runtime.StatefulKnowledgeSession getStatefulKnowledgeSession()
initializeStatefulKnowledgeSession
protected static org.drools.runtime.StatefulKnowledgeSession initializeStatefulKnowledgeSession()
- This method is meant to run within 1 thread (as is all logic in this class).
- Returns:
getJbpmConsoleProperties
protected static Properties getJbpmConsoleProperties()
- This method loads the jbpm console properties, if they haven't been loaded already.
checkPackagesFromGuvnor
public static void checkPackagesFromGuvnor()
getKagent
public static org.drools.agent.KnowledgeAgent getKagent()
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.