public class DefaultJobPriorityProvider extends DefaultPriorityProvider<JobDeclaration<?,?>>
DEFAULT_PRIORITY, DEFAULT_PRIORITY_ON_RESOLUTION_FAILURE
Constructor and Description |
---|
DefaultJobPriorityProvider() |
Modifier and Type | Method and Description |
---|---|
protected String |
describeContext(JobDeclaration<?,?> jobDeclaration,
ExecutionEntity executionEntity) |
protected Long |
getActivityPriority(ExecutionEntity execution,
JobDeclaration<?,?> jobDeclaration) |
protected JobDefinitionEntity |
getJobDefinitionFor(String jobDefinitionId) |
protected Long |
getProcessDefinitionPriority(ExecutionEntity execution,
JobDeclaration<?,?> jobDeclaration)
Returns the priority defined in the process definition.
|
protected Long |
getSpecificPriority(ExecutionEntity execution,
JobDeclaration<?,?> param,
String jobDefinitionId)
Returns the priority defined in the specific entity.
|
protected void |
logNotDeterminingPriority(ExecutionEntity execution,
Object value,
ProcessEngineException e)
Logs the exception which was thrown if the priority can not be determined.
|
determinePriority, evaluateValueProvider, getDefaultPriority, getDefaultPriorityOnResolutionFailure, getProcessDefinedPriority, isSymptomOfContextSwitchFailure, isValidLongValue
protected Long getSpecificPriority(ExecutionEntity execution, JobDeclaration<?,?> param, String jobDefinitionId)
DefaultPriorityProvider
getSpecificPriority
in class DefaultPriorityProvider<JobDeclaration<?,?>>
execution
- the current executionparam
- the generic paramjobDefinitionId
- the job definition id if related to a jobprotected Long getProcessDefinitionPriority(ExecutionEntity execution, JobDeclaration<?,?> jobDeclaration)
DefaultPriorityProvider
getProcessDefinitionPriority
in class DefaultPriorityProvider<JobDeclaration<?,?>>
execution
- the current executionjobDeclaration
- the generic paramprotected JobDefinitionEntity getJobDefinitionFor(String jobDefinitionId)
protected Long getActivityPriority(ExecutionEntity execution, JobDeclaration<?,?> jobDeclaration)
protected void logNotDeterminingPriority(ExecutionEntity execution, Object value, ProcessEngineException e)
DefaultPriorityProvider
logNotDeterminingPriority
in class DefaultPriorityProvider<JobDeclaration<?,?>>
execution
- the current execution entityvalue
- the current valuee
- the exception which was catchedprotected String describeContext(JobDeclaration<?,?> jobDeclaration, ExecutionEntity executionEntity)
Copyright © 2019. All rights reserved.