Class BatchSeedJobHandler
- java.lang.Object
-
- org.camunda.bpm.engine.impl.batch.BatchSeedJobHandler
-
- All Implemented Interfaces:
JobHandler<BatchSeedJobHandler.BatchSeedJobConfiguration>
public class BatchSeedJobHandler extends Object implements JobHandler<BatchSeedJobHandler.BatchSeedJobConfiguration>
The batch seed job handler is responsible to create all jobs to be executed by the batch. If all jobs are created a seed monitor job is created to oversee the completion of the batch (seeBatchMonitorJobHandler).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBatchSeedJobHandler.BatchSeedJobConfiguration
-
Constructor Summary
Constructors Constructor Description BatchSeedJobHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(BatchSeedJobHandler.BatchSeedJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId)StringgetType()BatchSeedJobHandler.BatchSeedJobConfigurationnewConfiguration(String canonicalString)voidonDelete(BatchSeedJobHandler.BatchSeedJobConfiguration configuration, JobEntity jobEntity)Clean up before job is deleted.
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public String getType()
- Specified by:
getTypein interfaceJobHandler<BatchSeedJobHandler.BatchSeedJobConfiguration>
-
execute
public void execute(BatchSeedJobHandler.BatchSeedJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId)
- Specified by:
executein interfaceJobHandler<BatchSeedJobHandler.BatchSeedJobConfiguration>
-
newConfiguration
public BatchSeedJobHandler.BatchSeedJobConfiguration newConfiguration(String canonicalString)
- Specified by:
newConfigurationin interfaceJobHandler<BatchSeedJobHandler.BatchSeedJobConfiguration>
-
onDelete
public void onDelete(BatchSeedJobHandler.BatchSeedJobConfiguration configuration, JobEntity jobEntity)
Description copied from interface:JobHandlerClean up before job is deleted. Like removing of auxiliary entities specific for this job handler.- Specified by:
onDeletein interfaceJobHandler<BatchSeedJobHandler.BatchSeedJobConfiguration>- Parameters:
configuration- the job handler configurationjobEntity- the job entity to be deleted
-
-