Class MigrationBatchJobHandler
- java.lang.Object
 - 
- org.camunda.bpm.engine.impl.batch.AbstractBatchJobHandler<MigrationBatchConfiguration>
 - 
- org.camunda.bpm.engine.impl.migration.batch.MigrationBatchJobHandler
 
 
 
- 
- All Implemented Interfaces:
 BatchJobHandler<MigrationBatchConfiguration>,JobHandler<BatchJobConfiguration>
public class MigrationBatchJobHandler extends AbstractBatchJobHandler<MigrationBatchConfiguration>
Job handler for batch migration jobs. The batch migration job migrates a list of process instances. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static BatchJobDeclarationJOB_DECLARATION 
- 
Constructor Summary
Constructors Constructor Description MigrationBatchJobHandler() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MigrationBatchConfigurationcreateJobConfiguration(MigrationBatchConfiguration configuration, List<String> processIdsForJob)voidexecute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId)JobDeclaration<BatchJobContext,MessageEntity>getJobDeclaration()Get the job declaration for batch jobs.protected MigrationBatchConfigurationJsonConvertergetJsonConverterInstance()protected ProcessDefinitionEntitygetProcessDefinition(CommandContext commandContext, String processDefinitionId)StringgetType()protected voidpostProcessJob(MigrationBatchConfiguration configuration, JobEntity job, MigrationBatchConfiguration jobConfiguration)protected voidsetVariables(String batchId, MigrationPlanImpl migrationPlan, CommandContext commandContext)- 
Methods inherited from class org.camunda.bpm.engine.impl.batch.AbstractBatchJobHandler
createBatchJob, createJobEntities, createJobs, deleteJobs, newConfiguration, onDelete, readConfiguration, sanitizeMappings, saveConfiguration, writeConfiguration 
 - 
 
 - 
 
- 
- 
Field Detail
- 
JOB_DECLARATION
public static final BatchJobDeclaration JOB_DECLARATION
 
 - 
 
- 
Method Detail
- 
getType
public String getType()
 
- 
getJobDeclaration
public JobDeclaration<BatchJobContext,MessageEntity> getJobDeclaration()
Description copied from interface:BatchJobHandlerGet the job declaration for batch jobs.- Specified by:
 getJobDeclarationin interfaceBatchJobHandler<MigrationBatchConfiguration>- Specified by:
 getJobDeclarationin classAbstractBatchJobHandler<MigrationBatchConfiguration>- Returns:
 - the batch job declaration
 
 
- 
getJsonConverterInstance
protected MigrationBatchConfigurationJsonConverter getJsonConverterInstance()
- Specified by:
 getJsonConverterInstancein classAbstractBatchJobHandler<MigrationBatchConfiguration>
 
- 
createJobConfiguration
protected MigrationBatchConfiguration createJobConfiguration(MigrationBatchConfiguration configuration, List<String> processIdsForJob)
- Specified by:
 createJobConfigurationin classAbstractBatchJobHandler<MigrationBatchConfiguration>
 
- 
postProcessJob
protected void postProcessJob(MigrationBatchConfiguration configuration, JobEntity job, MigrationBatchConfiguration jobConfiguration)
- Overrides:
 postProcessJobin classAbstractBatchJobHandler<MigrationBatchConfiguration>
 
- 
execute
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId)
 
- 
setVariables
protected void setVariables(String batchId, MigrationPlanImpl migrationPlan, CommandContext commandContext)
 
- 
getProcessDefinition
protected ProcessDefinitionEntity getProcessDefinition(CommandContext commandContext, String processDefinitionId)
 
 - 
 
 -