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, PostponedJobs postponedJobs) 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, PostponedJobs postponedJobs) 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.postponedJobs
- Place to add the configurations for the jobs that have to be scheduled later.- 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.- Returns:
- The handler that should be used to process the task.
-