Package org.camunda.bpm.engine.impl
Class RestartProcessInstancesJobHandler
- java.lang.Object
-
- org.camunda.bpm.engine.impl.batch.AbstractBatchJobHandler<RestartProcessInstancesBatchConfiguration>
-
- org.camunda.bpm.engine.impl.RestartProcessInstancesJobHandler
-
- All Implemented Interfaces:
BatchJobHandler<RestartProcessInstancesBatchConfiguration>
,OptimisticLockingListener
,JobHandler<BatchJobConfiguration>
public class RestartProcessInstancesJobHandler extends AbstractBatchJobHandler<RestartProcessInstancesBatchConfiguration>
- Author:
- Anna Pazola
-
-
Field Summary
Fields Modifier and Type Field Description static BatchJobDeclaration
JOB_DECLARATION
-
Constructor Summary
Constructors Constructor Description RestartProcessInstancesJobHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RestartProcessInstancesBatchConfiguration
createJobConfiguration(RestartProcessInstancesBatchConfiguration configuration, List<String> processIdsForJob)
void
executeHandler(RestartProcessInstancesBatchConfiguration batchConfiguration, ExecutionEntity execution, CommandContext commandContext, String tenantId)
JobDeclaration<BatchJobContext,MessageEntity>
getJobDeclaration()
Get the job declaration for batch jobs.protected RestartProcessInstancesBatchConfigurationJsonConverter
getJsonConverterInstance()
String
getType()
protected void
postProcessJob(RestartProcessInstancesBatchConfiguration configuration, JobEntity job, RestartProcessInstancesBatchConfiguration jobConfiguration)
-
Methods inherited from class org.camunda.bpm.engine.impl.batch.AbstractBatchJobHandler
createBatchJob, createJobEntities, createJobs, deleteJobs, execute, failedOperation, getEntityType, newConfiguration, onDelete, readConfiguration, sanitizeMappings, saveConfiguration, writeConfiguration
-
-
-
-
Field Detail
-
JOB_DECLARATION
public static final BatchJobDeclaration JOB_DECLARATION
-
-
Method Detail
-
getType
public String getType()
-
postProcessJob
protected void postProcessJob(RestartProcessInstancesBatchConfiguration configuration, JobEntity job, RestartProcessInstancesBatchConfiguration jobConfiguration)
- Overrides:
postProcessJob
in classAbstractBatchJobHandler<RestartProcessInstancesBatchConfiguration>
-
executeHandler
public void executeHandler(RestartProcessInstancesBatchConfiguration batchConfiguration, ExecutionEntity execution, CommandContext commandContext, String tenantId)
- Specified by:
executeHandler
in classAbstractBatchJobHandler<RestartProcessInstancesBatchConfiguration>
-
getJobDeclaration
public JobDeclaration<BatchJobContext,MessageEntity> getJobDeclaration()
Description copied from interface:BatchJobHandler
Get the job declaration for batch jobs.- Specified by:
getJobDeclaration
in interfaceBatchJobHandler<RestartProcessInstancesBatchConfiguration>
- Specified by:
getJobDeclaration
in classAbstractBatchJobHandler<RestartProcessInstancesBatchConfiguration>
- Returns:
- the batch job declaration
-
createJobConfiguration
protected RestartProcessInstancesBatchConfiguration createJobConfiguration(RestartProcessInstancesBatchConfiguration configuration, List<String> processIdsForJob)
- Specified by:
createJobConfiguration
in classAbstractBatchJobHandler<RestartProcessInstancesBatchConfiguration>
-
getJsonConverterInstance
protected RestartProcessInstancesBatchConfigurationJsonConverter getJsonConverterInstance()
- Specified by:
getJsonConverterInstance
in classAbstractBatchJobHandler<RestartProcessInstancesBatchConfiguration>
-
-