public class ActivityCancellationCmd extends AbstractProcessInstanceModificationCommand
Modifier and Type | Field and Description |
---|---|
protected String |
activityId |
protected ActivityInstance |
activityInstanceTree |
protected boolean |
cancelCurrentActiveActivityInstances |
processInstanceId, skipCustomListeners, skipIoMappings
Constructor and Description |
---|
ActivityCancellationCmd(String activityId) |
ActivityCancellationCmd(String processInstanceId,
String activityId) |
Modifier and Type | Method and 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) |
describeFailure, findActivityInstance, findTransitionInstance, getProcessInstanceId, getScopeExecutionForActivityInstance, getScopeForActivityInstance, matchesRequestedTransitionInstance, setProcessInstanceId, setSkipCustomListeners, setSkipIoMappings, toString
protected String activityId
protected boolean cancelCurrentActiveActivityInstances
protected ActivityInstance activityInstanceTree
public ActivityCancellationCmd(String activityId)
public Void execute(CommandContext commandContext)
protected Set<String> collectParentScopeIdsForActivity(ProcessDefinitionImpl processDefinition, String activityId)
protected List<TransitionInstance> getTransitionInstancesForActivity(ActivityInstance tree, Set<String> parentScopeIds)
protected List<ActivityInstance> getActivityInstancesForActivity(ActivityInstance tree, Set<String> parentScopeIds)
public ActivityInstance getActivityInstanceTree(CommandContext commandContext)
public String getActivityId()
public void setActivityInstanceTreeToCancel(ActivityInstance activityInstanceTreeToCancel)
protected String describe()
describe
in class AbstractProcessInstanceModificationCommand
public List<AbstractInstanceCancellationCmd> createActivityInstanceCancellations(ActivityInstance activityInstanceTree, CommandContext commandContext)
public boolean isCancelCurrentActiveActivityInstances()
public void setCancelCurrentActiveActivityInstances(boolean cancelCurrentActiveActivityInstances)
Copyright © 2019. All rights reserved.