| 
 | KIE API 6.2.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface KieSessionModel
KieSessionModel is a model allowing to programmatically define a KieSession
KieSession| Nested Class Summary | |
|---|---|
| static class | KieSessionModel.KieSessionType | 
| Method Summary | |
|---|---|
|  BeliefSystemTypeOption | getBeliefSystem()Returns the BeliefSystemType of this KieSessionModel | 
|  ClockTypeOption | getClockType()Returns the ClockType of this KieSessionModel | 
|  String | getConsoleLogger()Returns the name of the ConsoleLogger if any | 
|  FileLoggerModel | getFileLogger()Returns the FileLoggerModel registered on this KieSessionModel if any | 
|  List<ListenerModel> | getListenerModels()Returns all the ListenerModels defined for this KieSessionModel | 
|  String | getName()Returns the name of the KieSession defined by this KieSessionModel | 
|  String | getScope()Returns the CDI scope of this KieSessionModel | 
|  KieSessionModel.KieSessionType | getType()Returns the type of this KieSessionModel | 
|  List<WorkItemHandlerModel> | getWorkItemHandlerModels()Returns all the WorkItemHandlerModels defined for this KieSessionModel | 
|  boolean | isDefault()Returns true if this KieSessionModel is the default one | 
|  ListenerModel | newListenerModel(String type,
                 ListenerModel.Kind kind)Creates a new ListenerModel of the given type (i.e. the name of the class implementing it) and kind and add it to this KieSessionModel | 
|  WorkItemHandlerModel | newWorkItemHandlerModel(String name,
                        String type)Creates a new WorkItemHandlerModel of the given type (i.e. the name of the class implementing it) and add it to this KieSessionModel | 
|  KieSessionModel | setBeliefSystem(BeliefSystemTypeOption beliefSystem)Sets the BeliefSystem for this KieSessionModel. | 
|  KieSessionModel | setClockType(ClockTypeOption clockType)Sets the ClockType for this KieSessionModel. | 
|  KieSessionModel | setConsoleLogger(String consoleLogger)Sets a ConsoleLogger with the given name | 
|  KieSessionModel | setDefault(boolean isDefault)Sets the KieSession generated from this KieSessionModel as the default one, i.e. the one that can be loaded from the KieContainer without having to pass its name. | 
|  KieSessionModel | setFileLogger(String fileName)Sets a non-threaded FileLogger with the given name and 30 seconds of logging interval | 
|  KieSessionModel | setFileLogger(String fileName,
              int interval,
              boolean threaded)Sets a FileLogger with the given name, threaded behavior and logging interval | 
|  KieSessionModel | setScope(String scope)Sets the CDI scope for this KieSessionModel Default is javax.enterprise.context.ApplicationScoped | 
|  KieSessionModel | setType(KieSessionModel.KieSessionType type)Sets the type for this KieSessionModel. | 
| Method Detail | 
|---|
String getName()
KieSessionModel.KieSessionType getType()
KieSessionModel setType(KieSessionModel.KieSessionType type)
ClockTypeOption getClockType()
KieSessionModel setClockType(ClockTypeOption clockType)
BeliefSystemTypeOption getBeliefSystem()
KieSessionModel setBeliefSystem(BeliefSystemTypeOption beliefSystem)
ListenerModel newListenerModel(String type,
                               ListenerModel.Kind kind)
List<ListenerModel> getListenerModels()
WorkItemHandlerModel newWorkItemHandlerModel(String name,
                                             String type)
List<WorkItemHandlerModel> getWorkItemHandlerModels()
KieSessionModel setScope(String scope)
String getScope()
String getConsoleLogger()
KieSessionModel setConsoleLogger(String consoleLogger)
FileLoggerModel getFileLogger()
KieSessionModel setFileLogger(String fileName)
KieSessionModel setFileLogger(String fileName,
                              int interval,
                              boolean threaded)
boolean isDefault()
KieSessionModel setDefault(boolean isDefault)
| 
 | KIE API 6.2.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||