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>
Job handler for batch migration jobs. The batch migration job
migrates a list of process instances.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected MigrationBatchConfiguration
createJobConfiguration
(MigrationBatchConfiguration configuration, List<String> processIdsForJob) void
executeHandler
(MigrationBatchConfiguration batchConfiguration, ExecutionEntity execution, CommandContext commandContext, String tenantId) Get the job declaration for batch jobs.protected MigrationBatchConfigurationJsonConverter
protected ProcessDefinitionEntity
getProcessDefinition
(CommandContext commandContext, String processDefinitionId) getType()
protected void
postProcessJob
(MigrationBatchConfiguration configuration, JobEntity job, MigrationBatchConfiguration jobConfiguration) protected void
setVariables
(String batchId, MigrationPlanImpl migrationPlan, CommandContext commandContext) Methods inherited from class org.camunda.bpm.engine.impl.batch.AbstractBatchJobHandler
calculateInvocationsPerBatchJob, createBatchJob, createJobEntities, createJobs, deleteJobs, execute, failedOperation, getEntityType, newConfiguration, onDelete, readConfiguration, sanitizeMappings, saveConfiguration, writeConfiguration
-
Field Details
-
JOB_DECLARATION
-
-
Constructor Details
-
MigrationBatchJobHandler
public MigrationBatchJobHandler()
-
-
Method Details
-
getType
-
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
- Specified by:
getJsonConverterInstance
in classAbstractBatchJobHandler<MigrationBatchConfiguration>
-
createJobConfiguration
protected MigrationBatchConfiguration createJobConfiguration(MigrationBatchConfiguration configuration, List<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, String tenantId) - Specified by:
executeHandler
in classAbstractBatchJobHandler<MigrationBatchConfiguration>
-
setVariables
protected void setVariables(String batchId, MigrationPlanImpl migrationPlan, CommandContext commandContext) -
getProcessDefinition
protected ProcessDefinitionEntity getProcessDefinition(CommandContext commandContext, String processDefinitionId)
-