Package org.kie.api.builder.model
Interface KieBaseModel
- 
 public interface KieBaseModelKieBaseModel is a model allowing to programmatically define a KieBase- See Also:
- KieBase
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description KieBaseModeladdInclude(String kBaseName)Includes the resources of the KieBase with the given name in this KieBaseModelKieBaseModeladdPackage(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.KieBaseModeladdRuleTemplate(String dtable, String template, int row, int col)Defines a new RuleTemplateModel for this KieBaseModelBetaRangeIndexOptiongetBetaRangeIndexOption()Returns the BetaRangeIndexOption of this KieBaseModelDeclarativeAgendaOptiongetDeclarativeAgenda()Returns the DeclarativeAgendaOption of this KieBaseModelEqualityBehaviorOptiongetEqualsBehavior()Returns the EqualityBehavior of this KieBaseModelEventProcessingOptiongetEventProcessingMode()Returns the EventProcessingMode of this KieBaseModelSet<String>getIncludes()Returns all KieBases included by this oneMap<String,KieSessionModel>getKieSessionModels()Returns all the KieSessionModel defined in this KieBaseModel mapped by their namesKieBaseMutabilityOptiongetMutability()Returns the KieBaseMutabilityOption of this KieBaseModelStringgetName()Returns the name of the KieBase defined by this KieBaseModelList<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.List<RuleTemplateModel>getRuleTemplates()Returns the list of all RuleTemplateModels defined for this KieBaseModelStringgetScope()Returns the CDI scope of this KieBaseModel Default is javax.enterprise.context.ApplicationScopedSequentialOptiongetSequential()Returns the SequentialOption of this KieBaseModelSessionsPoolOptiongetSessionsPool()Returns the session pool configuration of this KieBaseModelbooleanisDefault()Returns true if this KieBaseModel is the default oneKieSessionModelnewKieSessionModel(String name)Creates a new KieSessionModel with the given name and adds it to this KieBaseModelKieBaseModelremoveInclude(String kBaseName)Remove the inclusion of the KieBase with the given nameKieBaseModelremoveKieSessionModel(String qName)Removes the KieSessionModel with the give name from this KieBaseModelKieBaseModelremovePackage(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.KieBaseModelsetBetaRangeIndexOption(BetaRangeIndexOption betaRangeIndexOption)Sets the BetaRangeIndexOption for this KieBaseModel Default is BetaRangeIndexOption.DISABLEDKieBaseModelsetDeclarativeAgenda(DeclarativeAgendaOption declarativeAgenda)Sets the DeclarativeAgendaOption for this KieBaseModel Default is DeclarativeAgendaOption.DISABLEDKieBaseModelsetDefault(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.KieBaseModelsetEqualsBehavior(EqualityBehaviorOption equalsBehaviour)Sets the EqualityBehavior for this KieBaseModel.KieBaseModelsetEventProcessingMode(EventProcessingOption eventProcessingMode)Sets the EventProcessingOption for this KieBaseModel Default is EventProcessingOption.CLOUDKieBaseModelsetMutability(KieBaseMutabilityOption mutability)Sets the KieBaseMutabilityOption for this KieBaseModel.KieBaseModelsetScope(String scope)Sets the CDI scope for this KieBaseModelKieBaseModelsetSequential(SequentialOption sequential)Sets the SequentialOption for this KieBaseModel Default is SequentialOption.NOKieBaseModelsetSessionsPool(SessionsPoolOption sessionPool)Sets the SessionPoolOption used by the KieBase to create new sessions Default is SessionPoolOption.NO
 
- 
- 
- 
Method Detail- 
newKieSessionModelKieSessionModel newKieSessionModel(String name) Creates a new KieSessionModel with the given name and adds it to this KieBaseModel- Parameters:
- name- The name of the new KieSessionModel to be created
- Returns:
- The new KieSessionModel
 
 - 
removeKieSessionModelKieBaseModel removeKieSessionModel(String qName) Removes the KieSessionModel with the give name from this KieBaseModel- Parameters:
- qName- The name of the KieSessionModel to be removed
 
 - 
getKieSessionModelsMap<String,KieSessionModel> getKieSessionModels() Returns all the KieSessionModel defined in this KieBaseModel mapped by their names
 - 
addIncludeKieBaseModel addInclude(String kBaseName) Includes the resources of the KieBase with the given name in this KieBaseModel
 - 
removeIncludeKieBaseModel removeInclude(String kBaseName) Remove the inclusion of the KieBase with the given name
 - 
getNameString getName() Returns the name of the KieBase defined by this KieBaseModel
 - 
getPackagesList<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. If this list is empty, "*" is assumed by default, meaning that all the resources stored under a folder with the same name of this KieBaseModel will be included in the compiled KieBase regardless of the package they belong to. The list of package patterns is ordered and earlier patterns are applied before later patterns. For example, if you specify "org.foo.*,!org.foo.impl" the second pattern has no effect since all org.foo packages have already been selected by the first pattern. Instead, you should specify "!org.foo.impl,org.foo.*", which will export all org.foo packages except org.foo.impl.
 - 
addPackageKieBaseModel 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.
 - 
removePackageKieBaseModel 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.
 - 
getEqualsBehaviorEqualityBehaviorOption getEqualsBehavior() Returns the EqualityBehavior of this KieBaseModel
 - 
setEqualsBehaviorKieBaseModel setEqualsBehavior(EqualityBehaviorOption equalsBehaviour) Sets the EqualityBehavior for this KieBaseModel. Default is EqualityBehaviorOption.IDENTITY
 - 
getMutabilityKieBaseMutabilityOption getMutability() Returns the KieBaseMutabilityOption of this KieBaseModel
 - 
setMutabilityKieBaseModel setMutability(KieBaseMutabilityOption mutability) Sets the KieBaseMutabilityOption for this KieBaseModel. Default is KieBaseMutabilityOption.ALLOWED
 - 
getSessionsPoolSessionsPoolOption getSessionsPool() Returns the session pool configuration of this KieBaseModel
 - 
setSessionsPoolKieBaseModel setSessionsPool(SessionsPoolOption sessionPool) Sets the SessionPoolOption used by the KieBase to create new sessions Default is SessionPoolOption.NO
 - 
getEventProcessingModeEventProcessingOption getEventProcessingMode() Returns the EventProcessingMode of this KieBaseModel
 - 
setEventProcessingModeKieBaseModel setEventProcessingMode(EventProcessingOption eventProcessingMode) Sets the EventProcessingOption for this KieBaseModel Default is EventProcessingOption.CLOUD
 - 
getDeclarativeAgendaDeclarativeAgendaOption getDeclarativeAgenda() Returns the DeclarativeAgendaOption of this KieBaseModel
 - 
setDeclarativeAgendaKieBaseModel setDeclarativeAgenda(DeclarativeAgendaOption declarativeAgenda) Sets the DeclarativeAgendaOption for this KieBaseModel Default is DeclarativeAgendaOption.DISABLED
 - 
getBetaRangeIndexOptionBetaRangeIndexOption getBetaRangeIndexOption() Returns the BetaRangeIndexOption of this KieBaseModel
 - 
setBetaRangeIndexOptionKieBaseModel setBetaRangeIndexOption(BetaRangeIndexOption betaRangeIndexOption) Sets the BetaRangeIndexOption for this KieBaseModel Default is BetaRangeIndexOption.DISABLED
 - 
getSequentialSequentialOption getSequential() Returns the SequentialOption of this KieBaseModel
 - 
setSequentialKieBaseModel setSequential(SequentialOption sequential) Sets the SequentialOption for this KieBaseModel Default is SequentialOption.NO
 - 
setScopeKieBaseModel setScope(String scope) Sets the CDI scope for this KieBaseModel
 - 
getScopeString getScope() Returns the CDI scope of this KieBaseModel Default is javax.enterprise.context.ApplicationScoped
 - 
getRuleTemplatesList<RuleTemplateModel> getRuleTemplates() Returns the list of all RuleTemplateModels defined for this KieBaseModel
 - 
addRuleTemplateKieBaseModel addRuleTemplate(String dtable, String template, int row, int col) Defines a new RuleTemplateModel for this KieBaseModel
 - 
isDefaultboolean isDefault() Returns true if this KieBaseModel is the default one
 - 
setDefaultKieBaseModel 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. Note that only one default KieBaseModel is allowed in a given KieContainer so if more than one is found (maybe because a given KieContainer includes many KieModules) a warning is emitted and all the defaults are disabled so all the KieBases will be accessible only by name
 
- 
 
-