Package org.camunda.bpm.engine.impl.cmd
Class ActivityCancellationCmd
- java.lang.Object
-
- org.camunda.bpm.engine.impl.cmd.AbstractProcessInstanceModificationCommand
-
- org.camunda.bpm.engine.impl.cmd.ActivityCancellationCmd
-
- All Implemented Interfaces:
Command<java.lang.Void>
public class ActivityCancellationCmd extends AbstractProcessInstanceModificationCommand
- Author:
- Thorben Lindhauer
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
activityId
protected ActivityInstance
activityInstanceTree
protected boolean
cancelCurrentActiveActivityInstances
-
Fields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractProcessInstanceModificationCommand
externallyTerminated, processInstanceId, skipCustomListeners, skipIoMappings
-
-
Constructor Summary
Constructors Constructor Description ActivityCancellationCmd(java.lang.String activityId)
ActivityCancellationCmd(java.lang.String processInstanceId, java.lang.String activityId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Set<java.lang.String>
collectParentScopeIdsForActivity(ProcessDefinitionImpl processDefinition, java.lang.String activityId)
java.util.List<AbstractInstanceCancellationCmd>
createActivityInstanceCancellations(ActivityInstance activityInstanceTree, CommandContext commandContext)
protected java.lang.String
describe()
java.lang.Void
execute(CommandContext commandContext)
java.lang.String
getActivityId()
protected java.util.List<ActivityInstance>
getActivityInstancesForActivity(ActivityInstance tree, java.util.Set<java.lang.String> parentScopeIds)
ActivityInstance
getActivityInstanceTree(CommandContext commandContext)
protected java.util.List<TransitionInstance>
getTransitionInstancesForActivity(ActivityInstance tree, java.util.Set<java.lang.String> parentScopeIds)
boolean
isCancelCurrentActiveActivityInstances()
void
setActivityInstanceTreeToCancel(ActivityInstance activityInstanceTreeToCancel)
void
setCancelCurrentActiveActivityInstances(boolean cancelCurrentActiveActivityInstances)
-
Methods inherited from class org.camunda.bpm.engine.impl.cmd.AbstractProcessInstanceModificationCommand
describeFailure, findActivityInstance, findTransitionInstance, getProcessInstanceId, getScopeExecutionForActivityInstance, getScopeForActivityInstance, matchesRequestedTransitionInstance, setExternallyTerminated, setProcessInstanceId, setSkipCustomListeners, setSkipIoMappings, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
-
-
-
-
Field Detail
-
activityId
protected java.lang.String activityId
-
cancelCurrentActiveActivityInstances
protected boolean cancelCurrentActiveActivityInstances
-
activityInstanceTree
protected ActivityInstance activityInstanceTree
-
-
Method Detail
-
execute
public java.lang.Void execute(CommandContext commandContext)
-
collectParentScopeIdsForActivity
protected java.util.Set<java.lang.String> collectParentScopeIdsForActivity(ProcessDefinitionImpl processDefinition, java.lang.String activityId)
-
getTransitionInstancesForActivity
protected java.util.List<TransitionInstance> getTransitionInstancesForActivity(ActivityInstance tree, java.util.Set<java.lang.String> parentScopeIds)
-
getActivityInstancesForActivity
protected java.util.List<ActivityInstance> getActivityInstancesForActivity(ActivityInstance tree, java.util.Set<java.lang.String> parentScopeIds)
-
getActivityInstanceTree
public ActivityInstance getActivityInstanceTree(CommandContext commandContext)
-
getActivityId
public java.lang.String getActivityId()
-
setActivityInstanceTreeToCancel
public void setActivityInstanceTreeToCancel(ActivityInstance activityInstanceTreeToCancel)
-
describe
protected java.lang.String describe()
- Specified by:
describe
in classAbstractProcessInstanceModificationCommand
-
createActivityInstanceCancellations
public java.util.List<AbstractInstanceCancellationCmd> createActivityInstanceCancellations(ActivityInstance activityInstanceTree, CommandContext commandContext)
-
isCancelCurrentActiveActivityInstances
public boolean isCancelCurrentActiveActivityInstances()
-
setCancelCurrentActiveActivityInstances
public void setCancelCurrentActiveActivityInstances(boolean cancelCurrentActiveActivityInstances)
-
-