Class DeleteProcessDefinitionsByIdsCmd

java.lang.Object
org.camunda.bpm.engine.impl.cmd.DeleteProcessDefinitionsByIdsCmd
All Implemented Interfaces:
Serializable, Command<Void>

public class DeleteProcessDefinitionsByIdsCmd extends Object implements Command<Void>, Serializable
Command to delete process definitions by ids.
Author:
Tassilo Weidner
See Also:
  • Field Details

    • processDefinitionIds

      protected final Set<String> processDefinitionIds
    • cascadeToHistory

      protected boolean cascadeToHistory
    • cascadeToInstances

      protected boolean cascadeToInstances
    • skipCustomListeners

      protected boolean skipCustomListeners
    • writeUserOperationLog

      protected boolean writeUserOperationLog
    • skipIoMappings

      protected boolean skipIoMappings
  • Constructor Details

    • DeleteProcessDefinitionsByIdsCmd

      public DeleteProcessDefinitionsByIdsCmd(List<String> processDefinitionIds, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings)
    • DeleteProcessDefinitionsByIdsCmd

      public DeleteProcessDefinitionsByIdsCmd(List<String> processDefinitionIds, boolean cascadeToHistory, boolean cascadeToInstances, boolean skipCustomListeners, boolean writeUserOperationLog)
    • DeleteProcessDefinitionsByIdsCmd

      public DeleteProcessDefinitionsByIdsCmd(List<String> processDefinitionIds, boolean cascadeToHistory, boolean cascadeToInstances, boolean skipCustomListeners, boolean skipIoMappings, boolean writeUserOperationLog)
  • Method Details

    • execute

      public Void execute(CommandContext commandContext)
      Specified by:
      execute in interface Command<Void>
    • getSingleProcessDefinition

      protected ProcessDefinition getSingleProcessDefinition(CommandContext commandContext)
    • groupByKeyAndTenant

      protected Set<org.camunda.bpm.engine.impl.cmd.DeleteProcessDefinitionsByIdsCmd.ProcessDefinitionGroup> groupByKeyAndTenant(List<ProcessDefinition> processDefinitions)
    • findNewLatestProcessDefinition

      protected ProcessDefinitionEntity findNewLatestProcessDefinition(org.camunda.bpm.engine.impl.cmd.DeleteProcessDefinitionsByIdsCmd.ProcessDefinitionGroup group)
    • isLatestProcessDefinition

      protected boolean isLatestProcessDefinition(ProcessDefinitionEntity processDefinition)
    • checkAuthorization

      protected void checkAuthorization(org.camunda.bpm.engine.impl.cmd.DeleteProcessDefinitionsByIdsCmd.ProcessDefinitionGroup group)
    • deleteProcessDefinitions

      protected void deleteProcessDefinitions(org.camunda.bpm.engine.impl.cmd.DeleteProcessDefinitionsByIdsCmd.ProcessDefinitionGroup group)