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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatefulKnowledgeSessionUtil
protected StatefulKnowledgeSessionUtil()
dispose
public static 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.