Class DefaultExternalTaskPriorityProvider
- java.lang.Object
-
- org.camunda.bpm.engine.impl.DefaultPriorityProvider<ExternalTaskActivityBehavior>
-
- org.camunda.bpm.engine.impl.externaltask.DefaultExternalTaskPriorityProvider
-
- All Implemented Interfaces:
PriorityProvider<ExternalTaskActivityBehavior>
public class DefaultExternalTaskPriorityProvider extends DefaultPriorityProvider<ExternalTaskActivityBehavior>
Represents the default priority provider for external tasks.- Author:
- Christopher Zell
-
-
Field Summary
Fields Modifier and Type Field Description static ExternalTaskLogger
LOG
-
Fields inherited from class org.camunda.bpm.engine.impl.DefaultPriorityProvider
DEFAULT_PRIORITY, DEFAULT_PRIORITY_ON_RESOLUTION_FAILURE
-
-
Constructor Summary
Constructors Constructor Description DefaultExternalTaskPriorityProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Long
getProcessDefinitionPriority(ExecutionEntity execution, ExternalTaskActivityBehavior param)
Returns the priority defined in the process definition.java.lang.Long
getSpecificPriority(ExecutionEntity execution, ExternalTaskActivityBehavior param, java.lang.String jobDefinitionId)
Returns the priority defined in the specific entity.protected void
logNotDeterminingPriority(ExecutionEntity execution, java.lang.Object value, ProcessEngineException e)
Logs the exception which was thrown if the priority can not be determined.-
Methods inherited from class org.camunda.bpm.engine.impl.DefaultPriorityProvider
determinePriority, evaluateValueProvider, getDefaultPriority, getDefaultPriorityOnResolutionFailure, getProcessDefinedPriority, isSymptomOfContextSwitchFailure, isValidLongValue
-
-
-
-
Field Detail
-
LOG
public static final ExternalTaskLogger LOG
-
-
Method Detail
-
logNotDeterminingPriority
protected void logNotDeterminingPriority(ExecutionEntity execution, java.lang.Object value, ProcessEngineException e)
Description copied from class:DefaultPriorityProvider
Logs the exception which was thrown if the priority can not be determined.- Specified by:
logNotDeterminingPriority
in classDefaultPriorityProvider<ExternalTaskActivityBehavior>
- Parameters:
execution
- the current execution entityvalue
- the current valuee
- the exception which was catched
-
getSpecificPriority
public java.lang.Long getSpecificPriority(ExecutionEntity execution, ExternalTaskActivityBehavior param, java.lang.String jobDefinitionId)
Description copied from class:DefaultPriorityProvider
Returns the priority defined in the specific entity. Like a job definition priority or an activity priority. The result can also be null in that case the process priority will be used.- Specified by:
getSpecificPriority
in classDefaultPriorityProvider<ExternalTaskActivityBehavior>
- Parameters:
execution
- the current executionparam
- the generic paramjobDefinitionId
- the job definition id if related to a job- Returns:
- the specific priority
-
getProcessDefinitionPriority
protected java.lang.Long getProcessDefinitionPriority(ExecutionEntity execution, ExternalTaskActivityBehavior param)
Description copied from class:DefaultPriorityProvider
Returns the priority defined in the process definition. Can also be null in that case the fallback is the default priority.- Specified by:
getProcessDefinitionPriority
in classDefaultPriorityProvider<ExternalTaskActivityBehavior>
- Parameters:
execution
- the current executionparam
- the generic param- Returns:
- the priority defined in the process definition
-
-