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>
,OptimisticLockingListener
,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 BatchJobDeclaration
JOB_DECLARATION
-
Constructor Summary
Constructors Constructor Description MigrationBatchJobHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MigrationBatchConfiguration
createJobConfiguration(MigrationBatchConfiguration configuration, java.util.List<java.lang.String> processIdsForJob)
void
executeHandler(MigrationBatchConfiguration batchConfiguration, ExecutionEntity execution, CommandContext commandContext, java.lang.String tenantId)
JobDeclaration<BatchJobContext,MessageEntity>
getJobDeclaration()
Get the job declaration for batch jobs.protected MigrationBatchConfigurationJsonConverter
getJsonConverterInstance()
protected ProcessDefinitionEntity
getProcessDefinition(CommandContext commandContext, java.lang.String processDefinitionId)
java.lang.String
getType()
protected void
postProcessJob(MigrationBatchConfiguration configuration, JobEntity job, MigrationBatchConfiguration jobConfiguration)
protected void
setVariables(java.lang.String batchId, MigrationPlanImpl migrationPlan, CommandContext commandContext)
-
Methods inherited from class org.camunda.bpm.engine.impl.batch.AbstractBatchJobHandler
createBatchJob, createJobEntities, createJobs, deleteJobs, execute, failedOperation, getEntityType, newConfiguration, onDelete, readConfiguration, sanitizeMappings, saveConfiguration, writeConfiguration
-
-
-
-
Field Detail
-
JOB_DECLARATION
public static final BatchJobDeclaration JOB_DECLARATION
-
-
Method Detail
-
getType
public java.lang.String getType()
-
getJobDeclaration
public JobDeclaration<BatchJobContext,MessageEntity> getJobDeclaration()
Description copied from interface:BatchJobHandler
Get the job declaration for batch jobs.- Specified by:
getJobDeclaration
in interfaceBatchJobHandler<MigrationBatchConfiguration>
- Specified by:
getJobDeclaration
in classAbstractBatchJobHandler<MigrationBatchConfiguration>
- Returns:
- the batch job declaration
-
getJsonConverterInstance
protected MigrationBatchConfigurationJsonConverter getJsonConverterInstance()
- Specified by:
getJsonConverterInstance
in classAbstractBatchJobHandler<MigrationBatchConfiguration>
-
createJobConfiguration
protected MigrationBatchConfiguration createJobConfiguration(MigrationBatchConfiguration configuration, java.util.List<java.lang.String> processIdsForJob)
- Specified by:
createJobConfiguration
in classAbstractBatchJobHandler<MigrationBatchConfiguration>
-
postProcessJob
protected void postProcessJob(MigrationBatchConfiguration configuration, JobEntity job, MigrationBatchConfiguration jobConfiguration)
- Overrides:
postProcessJob
in classAbstractBatchJobHandler<MigrationBatchConfiguration>
-
executeHandler
public void executeHandler(MigrationBatchConfiguration batchConfiguration, ExecutionEntity execution, CommandContext commandContext, java.lang.String tenantId)
- Specified by:
executeHandler
in classAbstractBatchJobHandler<MigrationBatchConfiguration>
-
setVariables
protected void setVariables(java.lang.String batchId, MigrationPlanImpl migrationPlan, CommandContext commandContext)
-
getProcessDefinition
protected ProcessDefinitionEntity getProcessDefinition(CommandContext commandContext, java.lang.String processDefinitionId)
-
-