|
KIE API 6.0.0.Beta3 | |||||||||
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 | |
---|---|
ClockTypeOption |
getClockType()
Returns the EqualityBehavior of this KieSessionModel |
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 |
setClockType(ClockTypeOption clockType)
Sets the EqualityBehavior for this KieSessionModel. |
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 |
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)
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()
boolean isDefault()
KieSessionModel setDefault(boolean isDefault)
|
KIE API 6.0.0.Beta3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |