Package org.camunda.bpm.engine.impl.cmd
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
cascadeToHistory
protected boolean
cascadeToInstances
protected Set<String>
processDefinitionIds
protected boolean
skipCustomListeners
protected boolean
skipIoMappings
protected boolean
writeUserOperationLog
-
Constructor Summary
Constructors Constructor Description DeleteProcessDefinitionsByIdsCmd(List<String> processDefinitionIds, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings)
DeleteProcessDefinitionsByIdsCmd(List<String> processDefinitionIds, boolean cascadeToHistory, boolean cascadeToInstances, boolean skipCustomListeners, boolean writeUserOperationLog)
DeleteProcessDefinitionsByIdsCmd(List<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)
Void
execute(CommandContext commandContext)
protected ProcessDefinitionEntity
findNewLatestProcessDefinition(org.camunda.bpm.engine.impl.cmd.DeleteProcessDefinitionsByIdsCmd.ProcessDefinitionGroup group)
protected ProcessDefinition
getSingleProcessDefinition(CommandContext commandContext)
protected Set<org.camunda.bpm.engine.impl.cmd.DeleteProcessDefinitionsByIdsCmd.ProcessDefinitionGroup>
groupByKeyAndTenant(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
-
-
-
-
Constructor Detail
-
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)
-
-
Method Detail
-
execute
public Void execute(CommandContext commandContext)
-
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)
-
-