org.camunda.bpm.engine.impl.cmd.batch
Class DeleteProcessInstanceBatchCmd

java.lang.Object
  extended by org.camunda.bpm.engine.impl.cmd.batch.AbstractBatchCmd<Batch>
      extended by org.camunda.bpm.engine.impl.cmd.batch.DeleteProcessInstanceBatchCmd
All Implemented Interfaces:
Command<Batch>

public class DeleteProcessInstanceBatchCmd
extends AbstractBatchCmd<Batch>

Author:
Askar Akhmerov

Field Summary
protected  String deleteReason
           
protected  List<String> processInstanceIds
           
protected  ProcessInstanceQuery processInstanceQuery
           
 
Constructor Summary
DeleteProcessInstanceBatchCmd(List<String> processInstances, ProcessInstanceQuery processInstanceQuery, String deleteReason)
           
 
Method Summary
protected  int calculateSize(ProcessEngineConfigurationImpl engineConfiguration, DeleteProcessInstanceBatchConfiguration batchConfiguration)
           
protected  List<String> collectProcessInstanceIds()
           
protected  BatchEntity createBatch(CommandContext commandContext, List<String> processInstanceIds, String deleteReason)
           
 Batch execute(CommandContext commandContext)
           
protected  BatchJobHandler<DeleteProcessInstanceBatchConfiguration> getBatchJobHandler(ProcessEngineConfigurationImpl processEngineConfiguration)
           
 List<String> getProcessInstanceIds()
           
protected  void writeUserOperationLog(CommandContext commandContext, String deleteReason, int numInstances, boolean async)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.cmd.batch.AbstractBatchCmd
checkAuthorizations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deleteReason

protected final String deleteReason

processInstanceIds

protected List<String> processInstanceIds

processInstanceQuery

protected ProcessInstanceQuery processInstanceQuery
Constructor Detail

DeleteProcessInstanceBatchCmd

public DeleteProcessInstanceBatchCmd(List<String> processInstances,
                                     ProcessInstanceQuery processInstanceQuery,
                                     String deleteReason)
Method Detail

collectProcessInstanceIds

protected List<String> collectProcessInstanceIds()

getProcessInstanceIds

public List<String> getProcessInstanceIds()

execute

public Batch execute(CommandContext commandContext)

createBatch

protected BatchEntity createBatch(CommandContext commandContext,
                                  List<String> processInstanceIds,
                                  String deleteReason)

calculateSize

protected int calculateSize(ProcessEngineConfigurationImpl engineConfiguration,
                            DeleteProcessInstanceBatchConfiguration batchConfiguration)

getBatchJobHandler

protected BatchJobHandler<DeleteProcessInstanceBatchConfiguration> getBatchJobHandler(ProcessEngineConfigurationImpl processEngineConfiguration)

writeUserOperationLog

protected void writeUserOperationLog(CommandContext commandContext,
                                     String deleteReason,
                                     int numInstances,
                                     boolean async)


Copyright © 2016 camunda services GmbH. All rights reserved.