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

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.DeleteHistoricProcessInstancesBatchCmd
All Implemented Interfaces:
Command<Batch>

public class DeleteHistoricProcessInstancesBatchCmd
extends AbstractIDBasedBatchCmd<Batch>

Author:
Askar Akhmerov

Field Summary
protected  String deleteReason
           
protected  List<String> historicProcessInstanceIds
           
protected  HistoricProcessInstanceQuery historicProcessInstanceQuery
           
 
Constructor Summary
DeleteHistoricProcessInstancesBatchCmd(List<String> historicProcessInstanceIds, HistoricProcessInstanceQuery historicProcessInstanceQuery, String deleteReason)
           
 
Method Summary
protected  List<String> collectHistoricProcessInstanceIds()
           
 Batch execute(CommandContext commandContext)
           
protected  BatchConfiguration getAbstractIdsBatchConfiguration(List<String> processInstanceIds)
           
protected  BatchJobHandler<BatchConfiguration> getBatchJobHandler(ProcessEngineConfigurationImpl processEngineConfiguration)
           
 List<String> getHistoricProcessInstanceIds()
           
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

historicProcessInstanceIds

protected List<String> historicProcessInstanceIds

historicProcessInstanceQuery

protected HistoricProcessInstanceQuery historicProcessInstanceQuery
Constructor Detail

DeleteHistoricProcessInstancesBatchCmd

public DeleteHistoricProcessInstancesBatchCmd(List<String> historicProcessInstanceIds,
                                              HistoricProcessInstanceQuery historicProcessInstanceQuery,
                                              String deleteReason)
Method Detail

collectHistoricProcessInstanceIds

protected List<String> collectHistoricProcessInstanceIds()

getHistoricProcessInstanceIds

public List<String> getHistoricProcessInstanceIds()

execute

public Batch execute(CommandContext commandContext)

writeUserOperationLog

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

getAbstractIdsBatchConfiguration

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

getBatchJobHandler

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


Copyright © 2017 camunda services GmbH. All rights reserved.