Class BatchJobDeclaration
- java.lang.Object
-
- org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration<BatchJobContext,MessageEntity>
-
- org.camunda.bpm.engine.impl.batch.BatchJobDeclaration
-
- All Implemented Interfaces:
java.io.Serializable
public class BatchJobDeclaration extends JobDeclaration<BatchJobContext,MessageEntity>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration
activity, exclusive, jobConfiguration, jobDefinitionId, jobHandlerConfiguration, jobHandlerType, jobPriorityProvider
-
-
Constructor Summary
Constructors Constructor Description BatchJobDeclaration(java.lang.String jobHandlerType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterValueProvider
getJobPriorityProvider()
protected MessageEntity
newJobInstance(BatchJobContext context)
protected ExecutionEntity
resolveExecution(BatchJobContext context)
Returns the execution in which context the job is created.protected java.lang.String
resolveJobDefinitionId(BatchJobContext context)
protected JobHandlerConfiguration
resolveJobHandlerConfiguration(BatchJobContext context)
-
Methods inherited from class org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration
createJobInstance, getActivity, getActivityId, getJobConfiguration, getJobDefinitionId, getJobHandlerType, getProcessDefinition, isExclusive, postInitialize, reconfigure, resolveDueDate, resolveExclusive, resolveJobHandler, resolveJobHandlerType, resolveRetries, setActivity, setExclusive, setJobConfiguration, setJobDefinitionId, setJobPriorityProvider
-
-
-
-
Method Detail
-
resolveExecution
protected ExecutionEntity resolveExecution(BatchJobContext context)
Description copied from class:JobDeclaration
Returns the execution in which context the job is created. The execution is used to determine the job's priority based on a BPMN activity the execution is currently executing. May be null.- Specified by:
resolveExecution
in classJobDeclaration<BatchJobContext,MessageEntity>
-
newJobInstance
protected MessageEntity newJobInstance(BatchJobContext context)
- Specified by:
newJobInstance
in classJobDeclaration<BatchJobContext,MessageEntity>
-
resolveJobHandlerConfiguration
protected JobHandlerConfiguration resolveJobHandlerConfiguration(BatchJobContext context)
- Specified by:
resolveJobHandlerConfiguration
in classJobDeclaration<BatchJobContext,MessageEntity>
-
resolveJobDefinitionId
protected java.lang.String resolveJobDefinitionId(BatchJobContext context)
- Overrides:
resolveJobDefinitionId
in classJobDeclaration<BatchJobContext,MessageEntity>
-
getJobPriorityProvider
public ParameterValueProvider getJobPriorityProvider()
- Overrides:
getJobPriorityProvider
in classJobDeclaration<BatchJobContext,MessageEntity>
-
-