Class NodeHandlerBase
- java.lang.Object
-
- com.aquima.interactions.process.impl.handlers.NodeHandlerBase
-
- Direct Known Subclasses:
ConditionNodeHandler
,EventNodeHandler
,GroupNodeHandler
,ProcessNodeHandler
,TaskNodeHandler
,TimerNodeHandler
public abstract class NodeHandlerBase extends Object
Base class for node handlers that contains some common methods related to scheduling.- Since:
- 7.1
- Author:
- O. Kerpershoek
-
-
Constructor Summary
Constructors Constructor Description NodeHandlerBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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)
-
-
-
Method Detail
-
calculateTimeout
protected static DateTimeValue calculateTimeout(IProcessNodeDefinition node, IEvaluationContext context) throws RuleEngineException
- Throws:
RuleEngineException
-
setPostponedJobs
public void setPostponedJobs(PostponedJobs postponedJobs)
-
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.
-
-