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>
,JobHandler<BatchJobConfiguration>
public class DeleteProcessInstancesJobHandler extends AbstractBatchJobHandler<DeleteProcessInstanceBatchConfiguration>
- Author:
- Askar Akhmerov
-
-
Field Summary
Fields Modifier and Type Field Description static BatchJobDeclaration
JOB_DECLARATION
-
Constructor Summary
Constructors Constructor Description DeleteProcessInstancesJobHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DeleteProcessInstanceBatchConfiguration
createJobConfiguration(DeleteProcessInstanceBatchConfiguration configuration, java.util.List<java.lang.String> processIdsForJob)
protected void
createJobEntities(BatchEntity batch, DeleteProcessInstanceBatchConfiguration configuration, java.lang.String deploymentId, java.util.List<java.lang.String> processIds, int invocationsPerBatchJob)
void
execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, java.lang.String tenantId)
JobDeclaration<BatchJobContext,MessageEntity>
getJobDeclaration()
Get the job declaration for batch jobs.protected DeleteProcessInstanceBatchConfigurationJsonConverter
getJsonConverterInstance()
java.lang.String
getType()
-
Methods inherited from class org.camunda.bpm.engine.impl.batch.AbstractBatchJobHandler
createBatchJob, createJobs, deleteJobs, newConfiguration, onDelete, postProcessJob, readConfiguration, sanitizeMappings, saveConfiguration, writeConfiguration
-
-
-
-
Field Detail
-
JOB_DECLARATION
public static final BatchJobDeclaration JOB_DECLARATION
-
-
Method Detail
-
getType
public java.lang.String getType()
-
getJsonConverterInstance
protected DeleteProcessInstanceBatchConfigurationJsonConverter getJsonConverterInstance()
- Specified by:
getJsonConverterInstance
in classAbstractBatchJobHandler<DeleteProcessInstanceBatchConfiguration>
-
getJobDeclaration
public JobDeclaration<BatchJobContext,MessageEntity> 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, java.util.List<java.lang.String> processIdsForJob)
- Specified by:
createJobConfiguration
in classAbstractBatchJobHandler<DeleteProcessInstanceBatchConfiguration>
-
execute
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, java.lang.String tenantId)
-
createJobEntities
protected void createJobEntities(BatchEntity batch, DeleteProcessInstanceBatchConfiguration configuration, java.lang.String deploymentId, java.util.List<java.lang.String> processIds, int invocationsPerBatchJob)
- Overrides:
createJobEntities
in classAbstractBatchJobHandler<DeleteProcessInstanceBatchConfiguration>
-
-