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 java.util.List<AgendaEventListener>
getAgendaEventListeners(RuntimeEngine runtime)
Returns new instances ofAgendaEventListener
that will be registered onRuntimeEngine
java.util.Map<java.lang.String,java.lang.Object>
getGlobals(RuntimeEngine runtime)
Returns globals that shall be registered onKieSession
.java.util.List<ProcessEventListener>
getProcessEventListeners(RuntimeEngine runtime)
Returns new instances ofProcessEventListener
that will be registered onRuntimeEngine
java.util.List<RuleRuntimeEventListener>
getRuleRuntimeEventListeners(RuntimeEngine runtime)
Returns new instances ofRuleRuntimeEventListener
that will be registered onRuntimeEngine
java.util.List<TaskLifeCycleEventListener>
getTaskListeners()
java.util.Map<java.lang.String,WorkItemHandler>
getWorkItemHandlers(RuntimeEngine runtime)
Returns new instances ofWorkItemHandler
that will be registered onRuntimeEngine
-
-
-
Method Detail
-
getWorkItemHandlers
java.util.Map<java.lang.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
java.util.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
java.util.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
java.util.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
java.util.Map<java.lang.String,java.lang.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
java.util.List<TaskLifeCycleEventListener> getTaskListeners()
- Returns:
- new instances of
TaskLifeCycleEventListener
that will be registered onRuntimeEngine
.
-
-