Package org.kie.api.runtime.manager
Interface RegisterableItemsFactory
-
public interface RegisterableItemsFactory
Factory that is used byRuntimeManager
to configureRuntimeEngine
(especially KieSession) with various registerable items:- Work item handlers
- Process event listeners
- Agenda event listeners
- Working memory event listeners
RuntimeEngine
. If there are any needs to be bound handlers or listeners to eny parts of runtime engine these can be obtained:- KieSession
- TaskService
RuntimeEngine
instance instead to allow most flexible behavior.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<AgendaEventListener>
getAgendaEventListeners(RuntimeEngine runtime)
Returns new instances ofAgendaEventListener
that will be registered onRuntimeEngine
Map<String,Object>
getGlobals(RuntimeEngine runtime)
Returns globals that shall be registered onKieSession
.List<ProcessEventListener>
getProcessEventListeners(RuntimeEngine runtime)
Returns new instances ofProcessEventListener
that will be registered onRuntimeEngine
List<RuleRuntimeEventListener>
getRuleRuntimeEventListeners(RuntimeEngine runtime)
Returns new instances ofRuleRuntimeEventListener
that will be registered onRuntimeEngine
List<TaskLifeCycleEventListener>
getTaskListeners()
Map<String,WorkItemHandler>
getWorkItemHandlers(RuntimeEngine runtime)
Returns new instances ofWorkItemHandler
that will be registered onRuntimeEngine
-
-
-
Method Detail
-
getWorkItemHandlers
Map<String,WorkItemHandler> getWorkItemHandlers(RuntimeEngine runtime)
Returns new instances ofWorkItemHandler
that will be registered onRuntimeEngine
- Parameters:
runtime
- providesRuntimeEngine
in case handler need to make use of it internally- Returns:
- map of handlers to be registered - in case of no handlers empty map shall be returned.
-
getProcessEventListeners
List<ProcessEventListener> getProcessEventListeners(RuntimeEngine runtime)
Returns new instances ofProcessEventListener
that will be registered onRuntimeEngine
- Parameters:
runtime
- providesRuntimeEngine
in case listeners need to make use of it internally- Returns:
- list of listeners to be registered - in case of no listeners empty list shall be returned.
-
getAgendaEventListeners
List<AgendaEventListener> getAgendaEventListeners(RuntimeEngine runtime)
Returns new instances ofAgendaEventListener
that will be registered onRuntimeEngine
- Parameters:
runtime
- providesRuntimeEngine
in case listeners need to make use of it internally- Returns:
- list of listeners to be registered - in case of no listeners empty list shall be returned.
-
getRuleRuntimeEventListeners
List<RuleRuntimeEventListener> getRuleRuntimeEventListeners(RuntimeEngine runtime)
Returns new instances ofRuleRuntimeEventListener
that will be registered onRuntimeEngine
- Parameters:
runtime
- providesRuntimeEngine
in case listeners need to make use of it internally- Returns:
- list of listeners to be registered - in case of no listeners empty list shall be returned.
-
getGlobals
Map<String,Object> getGlobals(RuntimeEngine runtime)
Returns globals that shall be registered onKieSession
.- Parameters:
runtime
- providesRuntimeEngine
in case globals need to make use of it internally- Returns:
- map of globals to be registered - in case of no globals empty map shall be returned.
-
getTaskListeners
List<TaskLifeCycleEventListener> getTaskListeners()
- Returns:
- new instances of
TaskLifeCycleEventListener
that will be registered onRuntimeEngine
.
-
-