org.camunda.bpm.engine.impl.batch
Class BatchJobDeclaration

java.lang.Object
  extended by org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration<BatchJobContext,MessageEntity>
      extended by org.camunda.bpm.engine.impl.batch.BatchJobDeclaration
All Implemented Interfaces:
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
BatchJobDeclaration(String jobHandlerType)
           
 
Method Summary
 ParameterValueProvider getJobPriorityProvider()
           
protected  MessageEntity newJobInstance(BatchJobContext context)
           
protected  ExecutionEntity resolveExecution(BatchJobContext context)
          Returns the execution in which context the job is created.
protected  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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchJobDeclaration

public BatchJobDeclaration(String jobHandlerType)
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 class JobDeclaration<BatchJobContext,MessageEntity>

newJobInstance

protected MessageEntity newJobInstance(BatchJobContext context)
Specified by:
newJobInstance in class JobDeclaration<BatchJobContext,MessageEntity>

resolveJobHandlerConfiguration

protected JobHandlerConfiguration resolveJobHandlerConfiguration(BatchJobContext context)
Specified by:
resolveJobHandlerConfiguration in class JobDeclaration<BatchJobContext,MessageEntity>

resolveJobDefinitionId

protected String resolveJobDefinitionId(BatchJobContext context)
Overrides:
resolveJobDefinitionId in class JobDeclaration<BatchJobContext,MessageEntity>

getJobPriorityProvider

public ParameterValueProvider getJobPriorityProvider()
Overrides:
getJobPriorityProvider in class JobDeclaration<BatchJobContext,MessageEntity>


Copyright © 2017 camunda services GmbH. All rights reserved.