|
KIE API 6.0.0.CR3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KieBaseModel
KieBaseModel is a model allowing to programmatically define a KieBase
KieBase
Method Summary | |
---|---|
KieBaseModel |
addInclude(String kBaseName)
Includes the resources of the KieBase with the given name in this KieBaseModel |
KieBaseModel |
addPackage(String pkg)
Adds a package (pattern) to the list of the packages defining the set of resources that have to be included in the KieBase. |
DeclarativeAgendaOption |
getDeclarativeAgenda()
Returns the DeclarativeAgendaOption of this KieBaseModel |
EqualityBehaviorOption |
getEqualsBehavior()
Returns the EqualityBehavior of this KieBaseModel |
EventProcessingOption |
getEventProcessingMode()
Returns the EventProcessingMode of this KieBaseModel |
Map<String,KieSessionModel> |
getKieSessionModels()
Returns all the KieSessionModel defined in this KieBaseModel mapped by their names |
String |
getName()
Returns the name of the KieBase defined by this KieBaseModel |
List<String> |
getPackages()
Returns the ordered list of all the package patterns used to define the set of resources that have to be included in the KieBase. |
String |
getScope()
Returns the CDI scope of this KieBaseModel Default is javax.enterprise.context.ApplicationScoped |
boolean |
isDefault()
Returns true if this KieBaseModel is the default one |
KieSessionModel |
newKieSessionModel(String name)
Creates a new KieSessionModel with the given name and adds it to this KieBaseModel |
KieBaseModel |
removeInclude(String kBaseName)
Remove the inclusion of the KieBase with the given name |
KieBaseModel |
removeKieSessionModel(String qName)
Removes the KieSessionModel with the give name from this KieBaseModel |
KieBaseModel |
removePackage(String pkg)
Removes a package (pattern) from the list of the packages defining the set of resources that have to be included in the KieBase. |
KieBaseModel |
setDeclarativeAgenda(DeclarativeAgendaOption declarativeAgenda)
Sets the DeclarativeAgendaOption for this KieBaseModel Default is DeclarativeAgendaOption.DISABLED |
KieBaseModel |
setDefault(boolean isDefault)
Sets the KieBase generated from this KieBaseModel as the default one, i.e. the one that can be loaded from the KieContainer without having to pass its name. |
KieBaseModel |
setEqualsBehavior(EqualityBehaviorOption equalsBehaviour)
Sets the EqualityBehavior for this KieBaseModel. |
KieBaseModel |
setEventProcessingMode(EventProcessingOption eventProcessingMode)
Sets the EventProcessingOption for this KieBaseModel Default is EventProcessingOption.CLOUD |
KieBaseModel |
setScope(String scope)
Sets the CDI scope for this KieBaseModel |
Method Detail |
---|
KieSessionModel newKieSessionModel(String name)
name
- The name of the new KieSessionModel to be created
KieBaseModel removeKieSessionModel(String qName)
qName
- The name of the KieSessionModel to be removedMap<String,KieSessionModel> getKieSessionModels()
KieBaseModel addInclude(String kBaseName)
KieBaseModel removeInclude(String kBaseName)
String getName()
List<String> getPackages()
KieBaseModel addPackage(String pkg)
KieBaseModel removePackage(String pkg)
EqualityBehaviorOption getEqualsBehavior()
KieBaseModel setEqualsBehavior(EqualityBehaviorOption equalsBehaviour)
EventProcessingOption getEventProcessingMode()
KieBaseModel setEventProcessingMode(EventProcessingOption eventProcessingMode)
DeclarativeAgendaOption getDeclarativeAgenda()
KieBaseModel setDeclarativeAgenda(DeclarativeAgendaOption declarativeAgenda)
KieBaseModel setScope(String scope)
String getScope()
boolean isDefault()
KieBaseModel setDefault(boolean isDefault)
|
KIE API 6.0.0.CR3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |