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
-
public class ActivityCancellationCmd extends AbstractProcessInstanceModificationCommand
- Author:
- Thorben Lindhauer
-
-
Field Summary
Fields Modifier and Type Field Description protected 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(String activityId)
ActivityCancellationCmd(String processInstanceId, String activityId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<String>
collectParentScopeIdsForActivity(ProcessDefinitionImpl processDefinition, String activityId)
List<AbstractInstanceCancellationCmd>
createActivityInstanceCancellations(ActivityInstance activityInstanceTree, CommandContext commandContext)
protected String
describe()
Void
execute(CommandContext commandContext)
String
getActivityId()
protected List<ActivityInstance>
getActivityInstancesForActivity(ActivityInstance tree, Set<String> parentScopeIds)
ActivityInstance
getActivityInstanceTree(CommandContext commandContext)
protected List<TransitionInstance>
getTransitionInstancesForActivity(ActivityInstance tree, Set<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 String activityId
-
cancelCurrentActiveActivityInstances
protected boolean cancelCurrentActiveActivityInstances
-
activityInstanceTree
protected ActivityInstance activityInstanceTree
-
-
Method Detail
-
execute
public Void execute(CommandContext commandContext)
-
collectParentScopeIdsForActivity
protected Set<String> collectParentScopeIdsForActivity(ProcessDefinitionImpl processDefinition, String activityId)
-
getTransitionInstancesForActivity
protected List<TransitionInstance> getTransitionInstancesForActivity(ActivityInstance tree, Set<String> parentScopeIds)
-
getActivityInstancesForActivity
protected List<ActivityInstance> getActivityInstancesForActivity(ActivityInstance tree, Set<String> parentScopeIds)
-
getActivityInstanceTree
public ActivityInstance getActivityInstanceTree(CommandContext commandContext)
-
getActivityId
public String getActivityId()
-
setActivityInstanceTreeToCancel
public void setActivityInstanceTreeToCancel(ActivityInstance activityInstanceTreeToCancel)
-
describe
protected String describe()
- Specified by:
describe
in classAbstractProcessInstanceModificationCommand
-
createActivityInstanceCancellations
public List<AbstractInstanceCancellationCmd> createActivityInstanceCancellations(ActivityInstance activityInstanceTree, CommandContext commandContext)
-
isCancelCurrentActiveActivityInstances
public boolean isCancelCurrentActiveActivityInstances()
-
setCancelCurrentActiveActivityInstances
public void setCancelCurrentActiveActivityInstances(boolean cancelCurrentActiveActivityInstances)
-
-