org.camunda.bpm.engine.impl.batch
Class BatchSeedJobHandler

java.lang.Object
  extended by 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 (see BatchMonitorJobHandler).


Nested Class Summary
static class BatchSeedJobHandler.BatchSeedJobConfiguration
           
 
Field Summary
static String TYPE
           
 
Constructor Summary
BatchSeedJobHandler()
           
 
Method Summary
 void execute(BatchSeedJobHandler.BatchSeedJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId)
           
 String getType()
           
 BatchSeedJobHandler.BatchSeedJobConfiguration newConfiguration(String canonicalString)
           
 void onDelete(BatchSeedJobHandler.BatchSeedJobConfiguration configuration, JobEntity jobEntity)
          Clean up before job is deleted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

BatchSeedJobHandler

public BatchSeedJobHandler()
Method Detail

getType

public String getType()
Specified by:
getType in interface JobHandler<BatchSeedJobHandler.BatchSeedJobConfiguration>

execute

public void execute(BatchSeedJobHandler.BatchSeedJobConfiguration configuration,
                    ExecutionEntity execution,
                    CommandContext commandContext,
                    String tenantId)
Specified by:
execute in interface JobHandler<BatchSeedJobHandler.BatchSeedJobConfiguration>

newConfiguration

public BatchSeedJobHandler.BatchSeedJobConfiguration newConfiguration(String canonicalString)
Specified by:
newConfiguration in interface JobHandler<BatchSeedJobHandler.BatchSeedJobConfiguration>

onDelete

public void onDelete(BatchSeedJobHandler.BatchSeedJobConfiguration configuration,
                     JobEntity jobEntity)
Description copied from interface: JobHandler
Clean up before job is deleted. Like removing of auxiliary entities specific for this job handler.

Specified by:
onDelete in interface JobHandler<BatchSeedJobHandler.BatchSeedJobConfiguration>
Parameters:
configuration - the job handler configuration
jobEntity - the job entity to be deleted


Copyright © 2016 camunda services GmbH. All rights reserved.