Class NodeHandlerFactory
- java.lang.Object
-
- com.aquima.interactions.process.impl.handlers.NodeHandlerFactory
-
- All Implemented Interfaces:
INodeHandlerFactory
public class NodeHandlerFactory extends Object implements INodeHandlerFactory
Factory implementation that may be used to create handlers for node definitions.- Since:
- 7.1
- Author:
- O. Kerpershoek
-
-
Constructor Summary
Constructors Constructor Description NodeHandlerFactory(ProcessCaseRepository repository, ProcessEngine engine, IProcessTaskDelegate processTaskDelegate)
Constructs the factory with the required arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description INodeHandler
getHandlerFor(IProcessNodeDefinition node, IProcessCaseChangeListener changeListener, PostponedJobs postponedJobs)
This method returns the node handler that should be used for the specified definition.ITaskHandler
getTaskHandlerFor(ITaskModel task, IProcessCaseChangeListener changeListener)
This method returns a handler for the specified task.
-
-
-
Constructor Detail
-
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 Detail
-
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
public ITaskHandler getTaskHandlerFor(ITaskModel task, IProcessCaseChangeListener changeListener)
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.
-
-