# Uses of Interface
org.kie.api.builder.model.KieSessionModel

Packages that use KieSessionModel
Package
Description
org.kie.api.builder.model
org.kie.api.runtime
The runtime engine classes, including KieSession and StatelessKieSession.

- ## Uses of KieSessionModel in org.kie.api.builder.model

  Methods in org.kie.api.builder.model that return KieSessionModel
  Modifier and Type
  Method
  Description
  `KieSessionModel`
  KieSessionModel.`addCalendar(String name, String type)`
  Add a calendar to this KieSessionModel
  `KieSessionModel`
  KieBaseModel.`newKieSessionModel(String name)`
  Creates a new KieSessionModel with the given name and adds it to this KieBaseModel
  `KieSessionModel`
  KieSessionModel.`setAccumulateNullPropagation(boolean accumulateNullPropagation)`
  `KieSessionModel`
  KieSessionModel.`setBeliefSystem(BeliefSystemTypeOption beliefSystem)`
  Sets the BeliefSystem for this KieSessionModel.
  `KieSessionModel`
  KieSessionModel.`setClockType(ClockTypeOption clockType)`
  Sets the ClockType for this KieSessionModel.
  `KieSessionModel`
  KieSessionModel.`setConsoleLogger(String consoleLogger)`
  Sets a ConsoleLogger with the given name
  `KieSessionModel`
  KieSessionModel.`setDefault(boolean isDefault)`
  Sets the KieSession generated from this KieSessionModel as the default one, i.e.
  `KieSessionModel`
  KieSessionModel.`setDirectFiring(boolean isDefault)`
  Sets direct firing on this KieSession
  `KieSessionModel`
  KieSessionModel.`setFileLogger(String fileName)`
  Sets a non-threaded FileLogger with the given name and 30 seconds of logging interval
  `KieSessionModel`
  KieSessionModel.`setFileLogger(String fileName, int interval, boolean threaded)`
  Sets a FileLogger with the given name, threaded behavior and logging interval
  `KieSessionModel`
  KieSessionModel.`setScope(String scope)`
  Sets the CDI scope for this KieSessionModel Default is jakarta.enterprise.context.ApplicationScoped
  `KieSessionModel`
  KieSessionModel.`setThreadSafe(boolean threadSafe)`
  `KieSessionModel`
  KieSessionModel.`setType(KieSessionModel.KieSessionType type)`
  Sets the type for this KieSessionModel.
  Methods in org.kie.api.builder.model that return types with arguments of type KieSessionModel
  Modifier and Type
  Method
  Description
  `Map<String,KieSessionModel>`
  KieBaseModel.`getKieSessionModels()`
  Returns all the KieSessionModel defined in this KieBaseModel mapped by their names

- ## Uses of KieSessionModel in org.kie.api.runtime

  Methods in org.kie.api.runtime that return KieSessionModel
  Modifier and Type
  Method
  Description
  `KieSessionModel`
  KieContainer.`getKieSessionModel(String kSessionName)`
  Returns the KieSessionModel for the KieSession with the given name