Class RefreshableJobDefinition
java.lang.Object
com.aquima.interactions.process.impl.RefreshableJobDefinition
Describes a background job to evaluate a case.
- Since:
- 9.9
- Author:
- Petru Galanton
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the ID of the case which should be evaluated as part of this job.Returns the reference time for timer evaluation.String[]
Returns the node IDs of tasks whose priority should be evaluated.boolean
Indicates whether task priorities need to be evaluated in this job.boolean
Indicates whether timers should be evaluated in this job.void
setTasksForPriorityEvaluation
(String[] nodeIds) Sets the node IDs of tasks whose priority should be evaluated.void
setTimerEvaluationRequired
(boolean required) Sets that timer evaluation is required for this job.
-
Constructor Details
-
RefreshableJobDefinition
-
-
Method Details
-
getCaseId
public long getCaseId()Returns the ID of the case which should be evaluated as part of this job.- Returns:
- the case ID.
-
getReferenceTime
Returns the reference time for timer evaluation. The reference time is typically when this job was created rather than when it is executed.- Returns:
- the reference time for timer evaluation.
-
isTimerEvaluationRequired
public boolean isTimerEvaluationRequired()Indicates whether timers should be evaluated in this job.- Returns:
- true if timers need to be evaluated, false otherwise.
-
setTimerEvaluationRequired
public void setTimerEvaluationRequired(boolean required) Sets that timer evaluation is required for this job.- Parameters:
required
- true if required, false otherwise.
-
isPriorityEvaluationRequired
public boolean isPriorityEvaluationRequired()Indicates whether task priorities need to be evaluated in this job.- Returns:
- true if task priorities need to be evaluated, false otherwise.
-
getTasksForPriorityEvaluation
Returns the node IDs of tasks whose priority should be evaluated.- Returns:
- the node IDs (never null)
-
setTasksForPriorityEvaluation
Sets the node IDs of tasks whose priority should be evaluated.- Parameters:
nodeIds
- the nodeIds (persistency ids) (not null)
-