Class NodeHandlerFactory
java.lang.Object
com.aquima.interactions.process.impl.handlers.NodeHandlerFactory
- All Implemented Interfaces:
INodeHandlerFactory
Factory implementation that may be used to create handlers for node definitions.
- Since:
- 7.1
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionNodeHandlerFactory
(ProcessCaseRepository repository, ProcessEngine engine, IProcessTaskDelegate processTaskDelegate) Constructs the factory with the required arguments. -
Method Summary
Modifier and TypeMethodDescriptiongetHandlerFor
(IProcessNodeDefinition node, IProcessCaseChangeListener changeListener) This method returns the node handler that should be used for the specified definition.getTaskHandlerFor
(ITaskModel task, IProcessCaseChangeListener changeListener) This method returns a handler for the specified task.
-
Constructor Details
-
NodeHandlerFactory
public NodeHandlerFactory(ProcessCaseRepository repository, ProcessEngine engine, IProcessTaskDelegate processTaskDelegate) Constructs the factory with the required arguments.- Parameters:
repository
- The DAO that should be used to persist the tasks.engine
- The process engine containing event and role definitions.processTaskDelegate
- The process task delegate.
-
-
Method Details
-
getHandlerFor
public INodeHandler getHandlerFor(IProcessNodeDefinition node, IProcessCaseChangeListener changeListener) Description copied from interface:INodeHandlerFactory
This method returns the node handler that should be used for the specified definition.- Specified by:
getHandlerFor
in interfaceINodeHandlerFactory
- Parameters:
node
- The node definition for which a handler is requested.changeListener
- the change listener- Returns:
- The node handler for the specified node.
-
getTaskHandlerFor
Description copied from interface:INodeHandlerFactory
This method returns a handler for the specified task.- Specified by:
getTaskHandlerFor
in interfaceINodeHandlerFactory
- Parameters:
task
- The task for which a handler is requested.changeListener
- the change listener- Returns:
- The handler that should be used to process the task.
-