org.camunda.bpm.engine.impl.migration.batch
Class MigrationBatchJobHandler

java.lang.Object
  extended by org.camunda.bpm.engine.impl.batch.AbstractBatchJobHandler<MigrationBatchConfiguration>
      extended by org.camunda.bpm.engine.impl.migration.batch.MigrationBatchJobHandler
All Implemented Interfaces:
BatchJobHandler<MigrationBatchConfiguration>, JobHandler<BatchJobConfiguration>

public class MigrationBatchJobHandler
extends AbstractBatchJobHandler<MigrationBatchConfiguration>

Job handler for batch migration jobs. The batch migration job migrates a list of process instances.


Field Summary
static BatchJobDeclaration JOB_DECLARATION
           
 
Constructor Summary
MigrationBatchJobHandler()
           
 
Method Summary
protected  MigrationBatchConfiguration createJobConfiguration(MigrationBatchConfiguration configuration, List<String> processIdsForJob)
           
 void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId)
           
 JobDeclaration<BatchJobContext,MessageEntity> getJobDeclaration()
          Get the job declaration for batch jobs.
protected  MigrationBatchConfigurationJsonConverter getJsonConverterInstance()
           
protected  ProcessDefinitionEntity getProcessDefinition(CommandContext commandContext, String processDefinitionId)
           
 String getType()
           
protected  void postProcessJob(MigrationBatchConfiguration configuration, JobEntity job)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.batch.AbstractBatchJobHandler
createBatchJob, createJobs, deleteJobs, newConfiguration, onDelete, readConfiguration, saveConfiguration, writeConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JOB_DECLARATION

public static final BatchJobDeclaration JOB_DECLARATION
Constructor Detail

MigrationBatchJobHandler

public MigrationBatchJobHandler()
Method Detail

getType

public String getType()

getJobDeclaration

public JobDeclaration<BatchJobContext,MessageEntity> getJobDeclaration()
Description copied from interface: BatchJobHandler
Get the job declaration for batch jobs.

Specified by:
getJobDeclaration in interface BatchJobHandler<MigrationBatchConfiguration>
Specified by:
getJobDeclaration in class AbstractBatchJobHandler<MigrationBatchConfiguration>
Returns:
the batch job declaration

getJsonConverterInstance

protected MigrationBatchConfigurationJsonConverter getJsonConverterInstance()
Specified by:
getJsonConverterInstance in class AbstractBatchJobHandler<MigrationBatchConfiguration>

createJobConfiguration

protected MigrationBatchConfiguration createJobConfiguration(MigrationBatchConfiguration configuration,
                                                             List<String> processIdsForJob)
Specified by:
createJobConfiguration in class AbstractBatchJobHandler<MigrationBatchConfiguration>

postProcessJob

protected void postProcessJob(MigrationBatchConfiguration configuration,
                              JobEntity job)
Overrides:
postProcessJob in class AbstractBatchJobHandler<MigrationBatchConfiguration>

execute

public void execute(BatchJobConfiguration configuration,
                    ExecutionEntity execution,
                    CommandContext commandContext,
                    String tenantId)

getProcessDefinition

protected ProcessDefinitionEntity getProcessDefinition(CommandContext commandContext,
                                                       String processDefinitionId)


Copyright © 2017 camunda services GmbH. All rights reserved.