Class DeleteDeploymentsJobHandler
java.lang.Object
org.cibseven.bpm.engine.impl.batch.AbstractBatchJobHandler<DeleteDeploymentBatchConfiguration>
org.cibseven.bpm.engine.impl.batch.deletion.DeleteDeploymentsJobHandler
- All Implemented Interfaces:
BatchJobHandler<DeleteDeploymentBatchConfiguration>,OptimisticLockingListener,JobHandler<BatchJobConfiguration>
public class DeleteDeploymentsJobHandler
extends AbstractBatchJobHandler<DeleteDeploymentBatchConfiguration>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DeleteDeploymentBatchConfigurationcreateJobConfiguration(DeleteDeploymentBatchConfiguration configuration, List<String> deploymentIds) booleancreateJobs(BatchEntity batch) One job per group of deployments that hold versions of the same process (seeDeleteDeploymentsBatchCmd), so that versions of one process are never deleted by two jobs at the same time (CIB7-2038).voidexecuteHandler(DeleteDeploymentBatchConfiguration batchConfiguration, ExecutionEntity execution, CommandContext commandContext, String tenantId) Get the job declaration for batch jobs.getType()Methods inherited from class org.cibseven.bpm.engine.impl.batch.AbstractBatchJobHandler
calculateInvocationsPerBatchJob, createBatchJob, createJobEntities, deleteJobs, execute, failedOperation, getEntityType, newConfiguration, onDelete, postProcessJob, readConfiguration, sanitizeMappings, saveConfiguration, writeConfiguration
-
Field Details
-
JOB_DECLARATION
-
-
Constructor Details
-
DeleteDeploymentsJobHandler
public DeleteDeploymentsJobHandler()
-
-
Method Details
-
getType
-
getJsonConverterInstance
- Specified by:
getJsonConverterInstancein classAbstractBatchJobHandler<DeleteDeploymentBatchConfiguration>
-
getJobDeclaration
Description copied from interface:BatchJobHandlerGet the job declaration for batch jobs.- Specified by:
getJobDeclarationin interfaceBatchJobHandler<DeleteDeploymentBatchConfiguration>- Specified by:
getJobDeclarationin classAbstractBatchJobHandler<DeleteDeploymentBatchConfiguration>- Returns:
- the batch job declaration
-
createJobConfiguration
protected DeleteDeploymentBatchConfiguration createJobConfiguration(DeleteDeploymentBatchConfiguration configuration, List<String> deploymentIds) - Specified by:
createJobConfigurationin classAbstractBatchJobHandler<DeleteDeploymentBatchConfiguration>
-
createJobs
One job per group of deployments that hold versions of the same process (seeDeleteDeploymentsBatchCmd), so that versions of one process are never deleted by two jobs at the same time (CIB7-2038). Batches stored before that have one mapping per deployment and are created as before.- Specified by:
createJobsin interfaceBatchJobHandler<DeleteDeploymentBatchConfiguration>- Overrides:
createJobsin classAbstractBatchJobHandler<DeleteDeploymentBatchConfiguration>- Parameters:
batch- the batch to create jobs for- Returns:
- true of no more jobs have to be created for this batch, false otherwise
-
executeHandler
public void executeHandler(DeleteDeploymentBatchConfiguration batchConfiguration, ExecutionEntity execution, CommandContext commandContext, String tenantId) - Specified by:
executeHandlerin classAbstractBatchJobHandler<DeleteDeploymentBatchConfiguration>
-