|
jBPM distribution 6.0.0.CR4 | |||||||||
| 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(KieBaseEventListener listener)
Add an event listener. |
void |
addKnowledgePackage(org.kie.internal.definition.KnowledgePackage knowledgePackage)
|
void |
addKnowledgePackages(Collection<org.kie.internal.definition.KnowledgePackage> knowledgePackages)
|
Set<String> |
getEntryPointIds()
Returns the set of the entry points declared and/or used in this kie base |
FactType |
getFactType(String packageName,
String typeName)
Returns a reference to the FactType identified by the given package and type names. |
Collection<KieBaseEventListener> |
getKieBaseEventListeners()
Returns all event listeners. |
KiePackage |
getKiePackage(String packageName)
Returns a reference to the KiePackage identified by the given name. |
Collection<KiePackage> |
getKiePackages()
Returns a collection of the KiePackages that exist in this KieBase. |
Collection<org.kie.internal.runtime.StatefulKnowledgeSession> |
getKieSessions()
Returns a collection of the KieSessions that exist in this KieBase. |
org.kie.internal.definition.KnowledgePackage |
getKnowledgePackage(String packageName)
|
Collection<org.kie.internal.definition.KnowledgePackage> |
getKnowledgePackages()
|
Process |
getProcess(String processId)
Returns a reference to the Process identified by the given processId |
Collection<Process> |
getProcesses()
Returns a collection of the Processes that exist in this KieBase. |
Query |
getQuery(String packageName,
String queryName)
Returns a reference to the Query identified by the given package and query names. |
Rule |
getRule(String packageName,
String ruleName)
Returns a reference to the Rule identified by the given package and rule names. |
org.drools.core.RuleBase |
getRuleBase()
|
Collection<org.kie.internal.runtime.StatefulKnowledgeSession> |
getStatefulKnowledgeSessions()
|
KieSession |
newKieSession()
Creates a new KieSession using the default session configuration. |
KieSession |
newKieSession(KieSessionConfiguration conf,
Environment environment)
Creates a new KieSession using the given session configuration and/or environment. |
org.kie.internal.runtime.StatefulKnowledgeSession |
newStatefulKnowledgeSession()
|
org.kie.internal.runtime.StatefulKnowledgeSession |
newStatefulKnowledgeSession(KieSessionConfiguration conf,
Environment environment)
|
org.kie.internal.runtime.StatelessKnowledgeSession |
newStatelessKieSession()
Creates a new StatelessKieSession using the default session configuration. |
org.kie.internal.runtime.StatelessKnowledgeSession |
newStatelessKieSession(KieSessionConfiguration conf)
Creates a new StatelessKieSession using the given session configuration. |
org.kie.internal.runtime.StatelessKnowledgeSession |
newStatelessKnowledgeSession()
|
org.kie.internal.runtime.StatelessKnowledgeSession |
newStatelessKnowledgeSession(KieSessionConfiguration conf)
|
void |
removeEventListener(KieBaseEventListener listener)
Remove an event listener. |
void |
removeFunction(String packageName,
String ruleName)
Removes a function from the specified package. |
void |
removeKiePackage(String packageName)
Removes a KiePackage and all the definitions it contains from the KieBase |
void |
removeKnowledgePackage(String packageName)
|
void |
removeProcess(String processId)
Removes a process. |
void |
removeQuery(String packageName,
String queryName)
Removes a query from the specified package. |
void |
removeRule(String packageName,
String ruleName)
Removes 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(KieBaseEventListener listener)
KieBaseEventManager
addEventListener in interface KieBaseEventManagerlistener - The listener to add.public void removeEventListener(KieBaseEventListener listener)
KieBaseEventManager
removeEventListener in interface KieBaseEventManagerlistener - The listener to remove.public Collection<KieBaseEventListener> getKieBaseEventListeners()
KieBaseEventManager
getKieBaseEventListeners in interface KieBaseEventManagerpublic void addKnowledgePackage(org.kie.internal.definition.KnowledgePackage knowledgePackage)
public void addKnowledgePackages(Collection<org.kie.internal.definition.KnowledgePackage> knowledgePackages)
addKnowledgePackages in interface org.kie.internal.KnowledgeBasepublic Collection<org.kie.internal.definition.KnowledgePackage> getKnowledgePackages()
getKnowledgePackages in interface org.kie.internal.KnowledgeBasepublic org.kie.internal.runtime.StatefulKnowledgeSession newStatefulKnowledgeSession()
newStatefulKnowledgeSession in interface org.kie.internal.KnowledgeBasepublic KieSession newKieSession()
KieBaseKieSession using the default session configuration.
Don't forget to KieSession.dispose() session when you are done.
newKieSession in interface KieBaseKieSession
public org.kie.internal.runtime.StatefulKnowledgeSession newStatefulKnowledgeSession(KieSessionConfiguration conf,
Environment environment)
newStatefulKnowledgeSession in interface org.kie.internal.KnowledgeBase
public KieSession newKieSession(KieSessionConfiguration conf,
Environment environment)
KieBaseKieSession using the given session configuration and/or environment.
Either one can be null and it will use a default.
Don't forget to KieSession.dispose() session when you are done.
newKieSession in interface KieBaseconf - session configuration
KieSessionpublic Collection<org.kie.internal.runtime.StatefulKnowledgeSession> getStatefulKnowledgeSessions()
getStatefulKnowledgeSessions in interface org.kie.internal.KnowledgeBasepublic Collection<org.kie.internal.runtime.StatefulKnowledgeSession> getKieSessions()
KieBaseKieSessions that exist in this KieBase.
Be careful as sessions are not thread-safe and could be in use elsewhere.
getKieSessions in interface KieBaseKieSessionspublic org.kie.internal.runtime.StatelessKnowledgeSession newStatelessKnowledgeSession()
newStatelessKnowledgeSession in interface org.kie.internal.KnowledgeBasepublic org.kie.internal.runtime.StatelessKnowledgeSession newStatelessKieSession()
KieBaseStatelessKieSession using the default session configuration.
You do not need to call @{link #dispose()} on this.
newStatelessKieSession in interface KieBaseStatelessKieSessionpublic org.kie.internal.runtime.StatelessKnowledgeSession newStatelessKnowledgeSession(KieSessionConfiguration conf)
newStatelessKnowledgeSession in interface org.kie.internal.KnowledgeBasepublic org.kie.internal.runtime.StatelessKnowledgeSession newStatelessKieSession(KieSessionConfiguration conf)
KieBaseStatelessKieSession using the given session configuration.
You do not need to call KieSession.dispose() on this.
newStatelessKieSession in interface KieBaseconf - session configuration
StatelessKieSessionpublic void removeKnowledgePackage(String packageName)
removeKnowledgePackage in interface org.kie.internal.KnowledgeBase
public void removeRule(String packageName,
String ruleName)
KieBase
removeRule in interface KieBaseremoveRule in interface org.kie.internal.KnowledgeBasepackageName - the package name to which the rule belongs toruleName - the name of the rule
public void removeQuery(String packageName,
String queryName)
KieBase
removeQuery in interface KieBaseremoveQuery in interface org.kie.internal.KnowledgeBasepackageName - the package name to which the query belongs toqueryName - the name of the query
public void removeFunction(String packageName,
String ruleName)
KieBase
removeFunction in interface KieBaseremoveFunction in interface org.kie.internal.KnowledgeBasepackageName - the package name to which the function belongs toruleName - the name of the functionpublic void removeProcess(String processId)
KieBase
removeProcess in interface KieBaseremoveProcess in interface org.kie.internal.KnowledgeBaseprocessId - the id of the process
public FactType getFactType(String packageName,
String typeName)
KieBaseFactType identified by the given package and type names.
getFactType in interface KieBasegetFactType in interface org.kie.internal.KnowledgeBasepackageName - the name of the package the fact belongs totypeName - the name of the type
FactType identified by the parameters or null if not found.public org.kie.internal.definition.KnowledgePackage getKnowledgePackage(String packageName)
getKnowledgePackage in interface org.kie.internal.KnowledgeBasepublic Process getProcess(String processId)
KieBaseProcess identified by the given processId
getProcess in interface KieBasegetProcess in interface org.kie.internal.KnowledgeBaseprocessId - the id of the process
Process identified by the given processId or null if process not found.public Collection<Process> getProcesses()
KieBaseProcesses that exist in this KieBase.
getProcesses in interface KieBasegetProcesses in interface org.kie.internal.KnowledgeBase
public Rule getRule(String packageName,
String ruleName)
KieBaseRule identified by the given package and rule names.
getRule in interface KieBasegetRule in interface org.kie.internal.KnowledgeBasepackageName - the package name to which the rule belongs toruleName - the name of the rule
Rule object or null if not found
public Query getQuery(String packageName,
String queryName)
KieBaseQuery identified by the given package and query names.
getQuery in interface KieBasegetQuery in interface org.kie.internal.KnowledgeBasepackageName - the package name to which the query belongs toqueryName - the name of the query
Query object or null if not found.public org.drools.core.RuleBase getRuleBase()
getRuleBase in interface org.drools.core.impl.InternalKnowledgeBasepublic Set<String> getEntryPointIds()
KieBase
getEntryPointIds in interface KieBasegetEntryPointIds in interface org.kie.internal.KnowledgeBasepublic Collection<KiePackage> getKiePackages()
KieBaseKiePackages that exist in this KieBase.
getKiePackages in interface KieBasepublic KiePackage getKiePackage(String packageName)
KieBaseKiePackage identified by the given name.
getKiePackage in interface KieBasepackageName - the name of the KiePackage to return
KiePackage identified by the the given name or null if package not found.public void removeKiePackage(String packageName)
KieBaseKiePackage and all the definitions it contains from the KieBase
removeKiePackage in interface KieBasepackageName - the name of the KiePackage to remove
|
jBPM distribution 6.0.0.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||