Class DeleteProcessInstancesJobHandler
java.lang.Object
org.camunda.bpm.engine.impl.batch.AbstractBatchJobHandler<DeleteProcessInstanceBatchConfiguration>
org.camunda.bpm.engine.impl.batch.deletion.DeleteProcessInstancesJobHandler
- All Implemented Interfaces:
BatchJobHandler<DeleteProcessInstanceBatchConfiguration>
,OptimisticLockingListener
,JobHandler<BatchJobConfiguration>
public class DeleteProcessInstancesJobHandler
extends AbstractBatchJobHandler<DeleteProcessInstanceBatchConfiguration>
- Author:
- Askar Akhmerov
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DeleteProcessInstanceBatchConfiguration
createJobConfiguration
(DeleteProcessInstanceBatchConfiguration configuration, List<String> processIdsForJob) protected void
createJobEntities
(BatchEntity batch, DeleteProcessInstanceBatchConfiguration configuration, String deploymentId, List<String> processIds, int invocationsPerBatchJob) void
executeHandler
(DeleteProcessInstanceBatchConfiguration batchConfiguration, ExecutionEntity execution, CommandContext commandContext, String tenantId) Get the job declaration for batch jobs.getType()
Methods inherited from class org.camunda.bpm.engine.impl.batch.AbstractBatchJobHandler
calculateInvocationsPerBatchJob, createBatchJob, createJobs, deleteJobs, execute, failedOperation, getEntityType, newConfiguration, onDelete, postProcessJob, readConfiguration, sanitizeMappings, saveConfiguration, writeConfiguration
-
Field Details
-
JOB_DECLARATION
-
-
Constructor Details
-
DeleteProcessInstancesJobHandler
public DeleteProcessInstancesJobHandler()
-
-
Method Details
-
getType
-
getJsonConverterInstance
- Specified by:
getJsonConverterInstance
in classAbstractBatchJobHandler<DeleteProcessInstanceBatchConfiguration>
-
getJobDeclaration
Description copied from interface:BatchJobHandler
Get the job declaration for batch jobs.- Specified by:
getJobDeclaration
in interfaceBatchJobHandler<DeleteProcessInstanceBatchConfiguration>
- Specified by:
getJobDeclaration
in classAbstractBatchJobHandler<DeleteProcessInstanceBatchConfiguration>
- Returns:
- the batch job declaration
-
createJobConfiguration
protected DeleteProcessInstanceBatchConfiguration createJobConfiguration(DeleteProcessInstanceBatchConfiguration configuration, List<String> processIdsForJob) - Specified by:
createJobConfiguration
in classAbstractBatchJobHandler<DeleteProcessInstanceBatchConfiguration>
-
executeHandler
public void executeHandler(DeleteProcessInstanceBatchConfiguration batchConfiguration, ExecutionEntity execution, CommandContext commandContext, String tenantId) - Specified by:
executeHandler
in classAbstractBatchJobHandler<DeleteProcessInstanceBatchConfiguration>
-
createJobEntities
protected void createJobEntities(BatchEntity batch, DeleteProcessInstanceBatchConfiguration configuration, String deploymentId, List<String> processIds, int invocationsPerBatchJob) - Overrides:
createJobEntities
in classAbstractBatchJobHandler<DeleteProcessInstanceBatchConfiguration>
-