|
jBPM :: Distribution 6.2.0-SNAPSHOT | |||||||||
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 |
addKnowledgePackages(Collection<org.kie.internal.definition.KnowledgePackage> kpackages)
|
void |
addPackage(org.kie.internal.definition.KnowledgePackage knowledgePackage)
|
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 KiePackage s that exist in this KieBase . |
Collection<org.kie.internal.runtime.StatefulKnowledgeSession> |
getKieSessions()
Returns a collection of the KieSession s 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 Process es 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. |
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 KieBaseEventManager
listener
- The listener to add.public void removeEventListener(KieBaseEventListener listener)
KieBaseEventManager
removeEventListener
in interface KieBaseEventManager
listener
- The listener to remove.public Collection<KieBaseEventListener> getKieBaseEventListeners()
KieBaseEventManager
getKieBaseEventListeners
in interface KieBaseEventManager
public void addKnowledgePackages(Collection<org.kie.internal.definition.KnowledgePackage> kpackages)
addKnowledgePackages
in interface org.kie.internal.KnowledgeBase
public void addPackage(org.kie.internal.definition.KnowledgePackage knowledgePackage)
public Collection<org.kie.internal.definition.KnowledgePackage> getKnowledgePackages()
getKnowledgePackages
in interface org.kie.internal.KnowledgeBase
public org.kie.internal.runtime.StatefulKnowledgeSession newStatefulKnowledgeSession()
newStatefulKnowledgeSession
in interface org.kie.internal.KnowledgeBase
public KieSession newKieSession()
KieBase
KieSession
using the default session configuration.
Don't forget to KieSession.dispose()
session when you are done.
newKieSession
in interface KieBase
KieSession
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)
KieBase
KieSession
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 KieBase
conf
- session configurationenvironment
- environment
KieSession
public Collection<org.kie.internal.runtime.StatefulKnowledgeSession> getStatefulKnowledgeSessions()
getStatefulKnowledgeSessions
in interface org.kie.internal.KnowledgeBase
public Collection<org.kie.internal.runtime.StatefulKnowledgeSession> getKieSessions()
KieBase
KieSession
s that exist in this KieBase
.
Be careful as sessions are not thread-safe and could be in use elsewhere.
getKieSessions
in interface KieBase
KieSession
spublic org.kie.internal.runtime.StatelessKnowledgeSession newStatelessKnowledgeSession()
newStatelessKnowledgeSession
in interface org.kie.internal.KnowledgeBase
public org.kie.internal.runtime.StatelessKnowledgeSession newStatelessKieSession()
KieBase
StatelessKieSession
using the default session configuration.
You do not need to call @{link #dispose()} on this.
newStatelessKieSession
in interface KieBase
StatelessKieSession
public org.kie.internal.runtime.StatelessKnowledgeSession newStatelessKnowledgeSession(KieSessionConfiguration conf)
newStatelessKnowledgeSession
in interface org.kie.internal.KnowledgeBase
public org.kie.internal.runtime.StatelessKnowledgeSession newStatelessKieSession(KieSessionConfiguration conf)
KieBase
StatelessKieSession
using the given session configuration.
You do not need to call KieSession.dispose()
on this.
newStatelessKieSession
in interface KieBase
conf
- session configuration
StatelessKieSession
public void removeKnowledgePackage(String packageName)
removeKnowledgePackage
in interface org.kie.internal.KnowledgeBase
public void removeRule(String packageName, String ruleName)
KieBase
removeRule
in interface KieBase
removeRule
in interface org.kie.internal.KnowledgeBase
packageName
- the package name to which the rule belongs toruleName
- the name of the rulepublic void removeQuery(String packageName, String queryName)
KieBase
removeQuery
in interface KieBase
removeQuery
in interface org.kie.internal.KnowledgeBase
packageName
- the package name to which the query belongs toqueryName
- the name of the querypublic void removeFunction(String packageName, String ruleName)
KieBase
removeFunction
in interface KieBase
removeFunction
in interface org.kie.internal.KnowledgeBase
packageName
- the package name to which the function belongs toruleName
- the name of the functionpublic void removeProcess(String processId)
KieBase
removeProcess
in interface KieBase
removeProcess
in interface org.kie.internal.KnowledgeBase
processId
- the id of the processpublic FactType getFactType(String packageName, String typeName)
KieBase
FactType
identified by the given package and type names.
getFactType
in interface KieBase
getFactType
in interface org.kie.internal.KnowledgeBase
packageName
- 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.KnowledgeBase
public Process getProcess(String processId)
KieBase
Process
identified by the given processId
getProcess
in interface KieBase
getProcess
in interface org.kie.internal.KnowledgeBase
processId
- the id of the process
Process
identified by the given processId or null if process not found.public Collection<Process> getProcesses()
KieBase
Process
es that exist in this KieBase
.
getProcesses
in interface KieBase
getProcesses
in interface org.kie.internal.KnowledgeBase
public Rule getRule(String packageName, String ruleName)
KieBase
Rule
identified by the given package and rule names.
getRule
in interface KieBase
getRule
in interface org.kie.internal.KnowledgeBase
packageName
- the package name to which the rule belongs toruleName
- the name of the rule
Rule
object or null if not foundpublic Query getQuery(String packageName, String queryName)
KieBase
Query
identified by the given package and query names.
getQuery
in interface KieBase
getQuery
in interface org.kie.internal.KnowledgeBase
packageName
- the package name to which the query belongs toqueryName
- the name of the query
Query
object or null if not found.public Set<String> getEntryPointIds()
KieBase
getEntryPointIds
in interface KieBase
getEntryPointIds
in interface org.kie.internal.KnowledgeBase
public Collection<KiePackage> getKiePackages()
KieBase
KiePackage
s that exist in this KieBase
.
getKiePackages
in interface KieBase
public KiePackage getKiePackage(String packageName)
KieBase
KiePackage
identified by the given name.
getKiePackage
in interface KieBase
packageName
- 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)
KieBase
KiePackage
and all the definitions it contains from the KieBase
removeKiePackage
in interface KieBase
packageName
- the name of the KiePackage
to remove
|
jBPM :: Distribution 6.2.0-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |