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
- Author:
- Thorben Lindhauer
-
Field Summary
Fields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractProcessInstanceModificationCommand
externallyTerminated, processInstanceId, skipCustomListeners, skipIoMappings
-
Constructor Summary
ConstructorDescriptionActivityCancellationCmd
(String activityId) ActivityCancellationCmd
(String processInstanceId, String activityId) -
Method Summary
Modifier and TypeMethodDescriptioncollectParentScopeIdsForActivity
(ProcessDefinitionImpl processDefinition, String activityId) createActivityInstanceCancellations
(ActivityInstance activityInstanceTree, CommandContext commandContext) protected String
describe()
execute
(CommandContext commandContext) protected List<ActivityInstance>
getActivityInstancesForActivity
(ActivityInstance tree, Set<String> parentScopeIds) getActivityInstanceTree
(CommandContext commandContext) protected List<TransitionInstance>
getTransitionInstancesForActivity
(ActivityInstance tree, Set<String> parentScopeIds) boolean
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
-
Field Details
-
activityId
-
cancelCurrentActiveActivityInstances
protected boolean cancelCurrentActiveActivityInstances -
activityInstanceTree
-
-
Constructor Details
-
ActivityCancellationCmd
-
ActivityCancellationCmd
-
-
Method Details
-
execute
-
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
-
getActivityId
-
setActivityInstanceTreeToCancel
-
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)
-