Class NodeHandlerBase
java.lang.Object
com.aquima.interactions.process.impl.handlers.NodeHandlerBase
- Direct Known Subclasses:
ConditionNodeHandler
,EventNodeHandler
,GroupNodeHandler
,ProcessNodeHandler
,TaskNodeHandler
,TimerNodeHandler
Base class for node handlers that contains some common methods related to scheduling.
- Since:
- 7.1
- Author:
- O. Kerpershoek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static DateTimeValue
calculateTimeout
(IProcessNodeDefinition node, IEvaluationContext context) protected void
scheduleExpiringJob
(ProcessEngine processEngine, ITaskModel task, IProcessEvaluator evaluator) Schedules a job that executes task expiration.protected void
schedulePriorityReevaluation
(ProcessEngine processEngine, ITaskModel task, IEvaluationContext context) Schedules the re-evaluation of the priority of the current task.protected void
scheduleTimerJob
(ProcessEngine processEngine, ITaskModel task, IProcessEvaluator evaluator) Schedules a job that processes a timer node.void
setPostponedJobs
(PostponedJobs postponedJobs)
-
Constructor Details
-
NodeHandlerBase
public NodeHandlerBase()
-
-
Method Details
-
calculateTimeout
protected static DateTimeValue calculateTimeout(IProcessNodeDefinition node, IEvaluationContext context) throws RuleEngineException - Throws:
RuleEngineException
-
setPostponedJobs
-
scheduleExpiringJob
protected void scheduleExpiringJob(ProcessEngine processEngine, ITaskModel task, IProcessEvaluator evaluator) Schedules a job that executes task expiration.- Parameters:
processEngine
- The current process engine.task
- The current task model.evaluator
- The current process evaluator.
-
scheduleTimerJob
protected void scheduleTimerJob(ProcessEngine processEngine, ITaskModel task, IProcessEvaluator evaluator) Schedules a job that processes a timer node.- Parameters:
processEngine
- The current process engine.task
- The current task model.evaluator
- The current process evaluator.
-
schedulePriorityReevaluation
protected void schedulePriorityReevaluation(ProcessEngine processEngine, ITaskModel task, IEvaluationContext context) Schedules the re-evaluation of the priority of the current task.- Parameters:
processEngine
- The current process engine.task
- The current task model.context
- The current process evaluator.
-