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

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

public class DeleteProcessInstanceBatchCmd
extends AbstractIDBasedBatchCmd<Batch>

Author:
Askar Akhmerov

Field Summary
protected  String deleteReason
           
protected  List<String> processInstanceIds
           
protected  ProcessInstanceQuery processInstanceQuery
           
protected  boolean skipCustomListeners
           
 
Constructor Summary
DeleteProcessInstanceBatchCmd(List<String> processInstances, ProcessInstanceQuery processInstanceQuery, String deleteReason, boolean skipCustomListeners)
           
 
Method Summary
protected  List<String> collectProcessInstanceIds()
           
 Batch execute(CommandContext commandContext)
           
protected  BatchConfiguration getAbstractIdsBatchConfiguration(List<String> processInstanceIds)
           
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.AbstractIDBasedBatchCmd
calculateSize, createBatch
 
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

skipCustomListeners

protected boolean skipCustomListeners
Constructor Detail

DeleteProcessInstanceBatchCmd

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

collectProcessInstanceIds

protected List<String> collectProcessInstanceIds()

getProcessInstanceIds

public List<String> getProcessInstanceIds()

execute

public Batch execute(CommandContext commandContext)

getAbstractIdsBatchConfiguration

protected BatchConfiguration getAbstractIdsBatchConfiguration(List<String> processInstanceIds)
Specified by:
getAbstractIdsBatchConfiguration in class AbstractIDBasedBatchCmd<Batch>

getBatchJobHandler

protected BatchJobHandler<DeleteProcessInstanceBatchConfiguration> getBatchJobHandler(ProcessEngineConfigurationImpl processEngineConfiguration)
Specified by:
getBatchJobHandler in class AbstractIDBasedBatchCmd<Batch>

writeUserOperationLog

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


Copyright © 2017 camunda services GmbH. All rights reserved.