|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.process.ProcessBaseImpl
public class ProcessBaseImpl
| Constructor Summary | |
|---|---|
ProcessBaseImpl()
|
|
| Method Summary | |
|---|---|
void |
addEventListener(KnowledgeBaseEventListener listener)
Add an event listener. |
void |
addKnowledgePackage(KnowledgePackage knowledgePackage)
|
void |
addKnowledgePackages(Collection<KnowledgePackage> knowledgePackages)
Add the collection of KnowledgePackages to the KnowledgeBase. |
Set<String> |
getEntryPointIds()
Returns the set of the entry points declared and/or used in this knowledge base |
FactType |
getFactType(String packageName,
String typeName)
Returns the FactType identified by the given package and type names. |
Collection<KnowledgeBaseEventListener> |
getKnowledgeBaseEventListeners()
Returns all event listeners. |
KnowledgePackage |
getKnowledgePackage(String packageName)
Returns a reference to the KnowledgePackage identified by the given name. |
Collection<KnowledgePackage> |
getKnowledgePackages()
Return an immutable collection of the packages that exist in this KnowledgeBase. |
Process |
getProcess(String processId)
Returns a referent to the Process identified by the given processId |
Collection<Process> |
getProcesses()
|
Query |
getQuery(String packageName,
String queryName)
Returns a reference to the Rule identified by the given package and rule names. |
Rule |
getRule(String packageName,
String ruleName)
Returns a reference to the Rule identified by the given package and rule names. |
org.drools.RuleBase |
getRuleBase()
|
Collection<StatefulKnowledgeSession> |
getStatefulKnowledgeSessions()
Return a collection of the StatefulKnowledgeSessions that exist in this KnowledgeBase. |
StatefulKnowledgeSession |
newStatefulKnowledgeSession()
Create a new StatefulKnowledgeSession using the default session configuration. |
StatefulKnowledgeSession |
newStatefulKnowledgeSession(KnowledgeSessionConfiguration conf,
Environment environment)
Create a new StatefulKnowledgeSession using the given session configuration and/or environment. |
StatelessKnowledgeSession |
newStatelessKnowledgeSession()
Create a new StatelessKnowledgeSession using the default session configuration. |
StatelessKnowledgeSession |
newStatelessKnowledgeSession(KnowledgeSessionConfiguration conf)
Create a new StatelessKnowledgeSession using the given session configuration. |
void |
removeEventListener(KnowledgeBaseEventListener listener)
Remove an event listener. |
void |
removeFunction(String packageName,
String ruleName)
Remove a function from the specified package. |
void |
removeKnowledgePackage(String packageName)
Remove a KnowledgePackage and all the definitions it contains from the KnowledgeBase. |
void |
removeProcess(String processId)
Remove a process from the specified package. |
void |
removeQuery(String packageName,
String queryName)
Remove a rule from the specified package. |
void |
removeRule(String packageName,
String ruleName)
Remove a rule from the specified package. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessBaseImpl()
| Method Detail |
|---|
public void addEventListener(KnowledgeBaseEventListener listener)
KnowledgeBaseEventManager
addEventListener in interface KnowledgeBaseEventManagerlistener - The listener to add.public void removeEventListener(KnowledgeBaseEventListener listener)
KnowledgeBaseEventManager
removeEventListener in interface KnowledgeBaseEventManagerlistener - The listener to remove.public Collection<KnowledgeBaseEventListener> getKnowledgeBaseEventListeners()
KnowledgeBaseEventManager
getKnowledgeBaseEventListeners in interface KnowledgeBaseEventManagerpublic void addKnowledgePackage(KnowledgePackage knowledgePackage)
public void addKnowledgePackages(Collection<KnowledgePackage> knowledgePackages)
KnowledgeBase
addKnowledgePackages in interface KnowledgeBasepublic Collection<KnowledgePackage> getKnowledgePackages()
KnowledgeBase
getKnowledgePackages in interface KnowledgeBasepublic StatefulKnowledgeSession newStatefulKnowledgeSession()
KnowledgeBase
newStatefulKnowledgeSession in interface KnowledgeBase
public StatefulKnowledgeSession newStatefulKnowledgeSession(KnowledgeSessionConfiguration conf,
Environment environment)
KnowledgeBase
newStatefulKnowledgeSession in interface KnowledgeBasepublic Collection<StatefulKnowledgeSession> getStatefulKnowledgeSessions()
KnowledgeBase
getStatefulKnowledgeSessions in interface KnowledgeBasepublic StatelessKnowledgeSession newStatelessKnowledgeSession()
KnowledgeBase
newStatelessKnowledgeSession in interface KnowledgeBasepublic StatelessKnowledgeSession newStatelessKnowledgeSession(KnowledgeSessionConfiguration conf)
KnowledgeBase
newStatelessKnowledgeSession in interface KnowledgeBasepublic void removeKnowledgePackage(String packageName)
KnowledgeBase
removeKnowledgePackage in interface KnowledgeBase
public void removeRule(String packageName,
String ruleName)
KnowledgeBase
removeRule in interface KnowledgeBase
public void removeQuery(String packageName,
String queryName)
KnowledgeBase
removeQuery in interface KnowledgeBase
public void removeFunction(String packageName,
String ruleName)
KnowledgeBase
removeFunction in interface KnowledgeBasepublic void removeProcess(String processId)
KnowledgeBase
removeProcess in interface KnowledgeBase
public FactType getFactType(String packageName,
String typeName)
KnowledgeBase
getFactType in interface KnowledgeBasepackageName - the name of the package the fact belongs to.typeName - the name of the type.
public KnowledgePackage getKnowledgePackage(String packageName)
KnowledgeBase
getKnowledgePackage in interface KnowledgeBasepackageName - the name of the KnowledgePackage to return
public Process getProcess(String processId)
KnowledgeBase
getProcess in interface KnowledgeBaseprocessId - the id of the process
public Collection<Process> getProcesses()
getProcesses in interface KnowledgeBase
public Rule getRule(String packageName,
String ruleName)
KnowledgeBase
getRule in interface KnowledgeBasepackageName - the package name to which the rule belongs to.ruleName - the name of the rule.
public Query getQuery(String packageName,
String queryName)
KnowledgeBase
getQuery in interface KnowledgeBasepackageName - the package name to which the rule belongs to.
public org.drools.RuleBase getRuleBase()
getRuleBase in interface org.drools.impl.InternalKnowledgeBasepublic Set<String> getEntryPointIds()
KnowledgeBase
getEntryPointIds in interface KnowledgeBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||