|
KIE API 6.0.0.Alpha9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KieBase
The KieBase is a repository of all the application's knowledge definitions. It will contain rules, processes, functions, type models. The KieBase itself does not contain runtime data, instead sessions are created from the KieBase in which data can be inserted and process instances started.
Method Summary | |
---|---|
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. |
KiePackage |
getKiePackage(String packageName)
Returns a reference to the KnowledgePackage identified by the given name. |
Collection<KiePackage> |
getKiePackages()
Return an immutable collection of the packages that exist in this KieBase. |
Collection<? extends KieSession> |
getKieSessions()
Return a collection of the StatefulKnowledgeSessions 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. |
KieSession |
newKieSession()
Create a new StatefulKnowledgeSession using the default session configuration. |
KieSession |
newKieSession(KieSessionConfiguration conf,
Environment environment)
Create a new StatefulKnowledgeSession using the given session configuration and/or environment. |
StatelessKieSession |
newStatelessKieSession()
Create a new StatelessKnowledgeSession using the default session configuration. |
StatelessKieSession |
newStatelessKieSession(KieSessionConfiguration conf)
Create a new StatelessKnowledgeSession using the given session configuration. |
void |
removeFunction(String packageName,
String ruleName)
Remove a function from the specified package. |
void |
removeKiePackage(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 interface org.kie.event.kiebase.KieBaseEventManager |
---|
addEventListener, getKieBaseEventListeners, removeEventListener |
Method Detail |
---|
Collection<KiePackage> getKiePackages()
KiePackage getKiePackage(String packageName)
packageName
- the name of the KnowledgePackage to return
void removeKiePackage(String packageName)
packageName
- Rule getRule(String packageName, String ruleName)
packageName
- the package name to which the rule belongs to.ruleName
- the name of the rule.
void removeRule(String packageName, String ruleName)
packageName
- ruleName
- Query getQuery(String packageName, String queryName)
packageName
- the package name to which the rule belongs to.ruleName
- the name of the rule.
void removeQuery(String packageName, String queryName)
packageName
- ruleName
- void removeFunction(String packageName, String ruleName)
packageName
- ruleName
- FactType getFactType(String packageName, String typeName)
packageName
- the name of the package the fact belongs to.typeName
- the name of the type.
Process getProcess(String processId)
processId
- the id of the process
void removeProcess(String processId)
processId
- Collection<Process> getProcesses()
KieSession newKieSession(KieSessionConfiguration conf, Environment environment)
conf
- environment
-
KieSession newKieSession()
Collection<? extends KieSession> getKieSessions()
StatelessKieSession newStatelessKieSession(KieSessionConfiguration conf)
conf
-
StatelessKieSession newStatelessKieSession()
Set<String> getEntryPointIds()
|
KIE API 6.0.0.Alpha9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |