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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MigrationBatchConfigurationcreateJobConfiguration(MigrationBatchConfiguration configuration, List<String> processIdsForJob) voidexecuteHandler(MigrationBatchConfiguration batchConfiguration, ExecutionEntity execution, CommandContext commandContext, String tenantId) Get the job declaration for batch jobs.protected MigrationBatchConfigurationJsonConverterprotected ProcessDefinitionEntitygetProcessDefinition(CommandContext commandContext, String processDefinitionId) getType()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
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:BatchJobHandlerGet the job declaration for batch jobs.- Specified by:
getJobDeclarationin interfaceBatchJobHandler<MigrationBatchConfiguration>- Specified by:
getJobDeclarationin classAbstractBatchJobHandler<MigrationBatchConfiguration>- Returns:
- the batch job declaration
-
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>
-
executeHandler
public void executeHandler(MigrationBatchConfiguration batchConfiguration, ExecutionEntity execution, CommandContext commandContext, String tenantId) - Specified by:
executeHandlerin classAbstractBatchJobHandler<MigrationBatchConfiguration>
-
setVariables
protected void setVariables(String batchId, MigrationPlanImpl migrationPlan, CommandContext commandContext) -
getProcessDefinition
protected ProcessDefinitionEntity getProcessDefinition(CommandContext commandContext, String processDefinitionId)
-