Class TaskNodeHandler
- java.lang.Object
-
- com.aquima.interactions.process.impl.handlers.NodeHandlerBase
-
- com.aquima.interactions.process.impl.handlers.TaskNodeHandler
-
- All Implemented Interfaces:
INodeHandler
,ITaskHandler
public class TaskNodeHandler extends NodeHandlerBase implements INodeHandler, ITaskHandler
Handler for tasks that need to be executed by the (automated) user.- Since:
- 7.1
- Author:
- O. Kerpershoek
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TaskNodeHandler(ProcessCaseRepository caseRepository, IProcessTaskDelegate taskDelegate, ProcessEngine engine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processNode(IEvaluationContext context, ITaskModel currentTask)
This method should process the task, and if the evaluation is successful, schedule the follow-up tasks.void
scheduleNode(IEvaluationContext context)
This method should schedule a task for the current node.-
Methods inherited from class com.aquima.interactions.process.impl.handlers.NodeHandlerBase
calculateTimeout, scheduleExpiringJob, schedulePriorityReevaluation, scheduleTimerJob, setPostponedJobs
-
-
-
-
Constructor Detail
-
TaskNodeHandler
protected TaskNodeHandler(ProcessCaseRepository caseRepository, IProcessTaskDelegate taskDelegate, ProcessEngine engine)
-
-
Method Detail
-
scheduleNode
public void scheduleNode(IEvaluationContext context) throws AppException
Description copied from interface:INodeHandler
This method should schedule a task for the current node. The context contains the current node and the parent task.- Specified by:
scheduleNode
in interfaceINodeHandler
- Parameters:
context
- This object contains information about the current node.- Throws:
AppException
- This exception is thrown when the task could not be scheduled.
-
processNode
public void processNode(IEvaluationContext context, ITaskModel currentTask) throws AppException
Description copied from interface:ITaskHandler
This method should process the task, and if the evaluation is successful, schedule the follow-up tasks.- Specified by:
processNode
in interfaceITaskHandler
- Parameters:
context
- The current context of the task.currentTask
- The task that should be processed.- Throws:
AppException
- This exception is thrown when the task could not be processed.
-
-