Package org.camunda.bpm.engine.impl.cmd
Class DeleteProcessDefinitionsByIdsCmd
- java.lang.Object
-
- org.camunda.bpm.engine.impl.cmd.DeleteProcessDefinitionsByIdsCmd
-
- All Implemented Interfaces:
java.io.Serializable
,Command<java.lang.Void>
public class DeleteProcessDefinitionsByIdsCmd extends java.lang.Object implements Command<java.lang.Void>, java.io.Serializable
Command to delete process definitions by ids.- Author:
- Tassilo Weidner
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
cascadeToHistory
protected boolean
cascadeToInstances
protected java.util.Set<java.lang.String>
processDefinitionIds
protected boolean
skipCustomListeners
protected boolean
skipIoMappings
protected boolean
writeUserOperationLog
-
Constructor Summary
Constructors Constructor Description DeleteProcessDefinitionsByIdsCmd(java.util.List<java.lang.String> processDefinitionIds, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings)
DeleteProcessDefinitionsByIdsCmd(java.util.List<java.lang.String> processDefinitionIds, boolean cascadeToHistory, boolean cascadeToInstances, boolean skipCustomListeners, boolean writeUserOperationLog)
DeleteProcessDefinitionsByIdsCmd(java.util.List<java.lang.String> processDefinitionIds, boolean cascadeToHistory, boolean cascadeToInstances, boolean skipCustomListeners, boolean skipIoMappings, boolean writeUserOperationLog)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkAuthorization(org.camunda.bpm.engine.impl.cmd.DeleteProcessDefinitionsByIdsCmd.ProcessDefinitionGroup group)
protected void
deleteProcessDefinitions(org.camunda.bpm.engine.impl.cmd.DeleteProcessDefinitionsByIdsCmd.ProcessDefinitionGroup group)
java.lang.Void
execute(CommandContext commandContext)
protected ProcessDefinitionEntity
findNewLatestProcessDefinition(org.camunda.bpm.engine.impl.cmd.DeleteProcessDefinitionsByIdsCmd.ProcessDefinitionGroup group)
protected ProcessDefinition
getSingleProcessDefinition(CommandContext commandContext)
protected java.util.Set<org.camunda.bpm.engine.impl.cmd.DeleteProcessDefinitionsByIdsCmd.ProcessDefinitionGroup>
groupByKeyAndTenant(java.util.List<ProcessDefinition> processDefinitions)
protected boolean
isLatestProcessDefinition(ProcessDefinitionEntity processDefinition)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
-
-
-
-
Field Detail
-
processDefinitionIds
protected final java.util.Set<java.lang.String> processDefinitionIds
-
cascadeToHistory
protected boolean cascadeToHistory
-
cascadeToInstances
protected boolean cascadeToInstances
-
skipCustomListeners
protected boolean skipCustomListeners
-
writeUserOperationLog
protected boolean writeUserOperationLog
-
skipIoMappings
protected boolean skipIoMappings
-
-
Constructor Detail
-
DeleteProcessDefinitionsByIdsCmd
public DeleteProcessDefinitionsByIdsCmd(java.util.List<java.lang.String> processDefinitionIds, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings)
-
DeleteProcessDefinitionsByIdsCmd
public DeleteProcessDefinitionsByIdsCmd(java.util.List<java.lang.String> processDefinitionIds, boolean cascadeToHistory, boolean cascadeToInstances, boolean skipCustomListeners, boolean writeUserOperationLog)
-
DeleteProcessDefinitionsByIdsCmd
public DeleteProcessDefinitionsByIdsCmd(java.util.List<java.lang.String> processDefinitionIds, boolean cascadeToHistory, boolean cascadeToInstances, boolean skipCustomListeners, boolean skipIoMappings, boolean writeUserOperationLog)
-
-
Method Detail
-
execute
public java.lang.Void execute(CommandContext commandContext)
-
getSingleProcessDefinition
protected ProcessDefinition getSingleProcessDefinition(CommandContext commandContext)
-
groupByKeyAndTenant
protected java.util.Set<org.camunda.bpm.engine.impl.cmd.DeleteProcessDefinitionsByIdsCmd.ProcessDefinitionGroup> groupByKeyAndTenant(java.util.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)
-
-