org.camunda.bpm.engine.impl.cmd
Class AbstractInstanceCancellationCmd

java.lang.Object
  extended by org.camunda.bpm.engine.impl.cmd.AbstractProcessInstanceModificationCommand
      extended by org.camunda.bpm.engine.impl.cmd.AbstractInstanceCancellationCmd
All Implemented Interfaces:
Command<Void>
Direct Known Subclasses:
ActivityInstanceCancellationCmd, TransitionInstanceCancellationCmd

public abstract class AbstractInstanceCancellationCmd
extends AbstractProcessInstanceModificationCommand

Author:
Thorben Lindhauer

Field Summary
protected  String cancellationReason
           
 
Fields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractProcessInstanceModificationCommand
processInstanceId, skipCustomListeners, skipIoMappings
 
Constructor Summary
AbstractInstanceCancellationCmd(String processInstanceId)
           
AbstractInstanceCancellationCmd(String processInstanceId, String cancellationReason)
           
 
Method Summary
protected abstract  ExecutionEntity determineSourceInstanceExecution(CommandContext commandContext)
           
 Void execute(CommandContext commandContext)
           
protected  ExecutionEntity findSuperExecution(ExecutionEntity parentScopeExecution, ExecutionEntity topmostCancellableExecution)
           
protected  void handleChildRemovalInScope(ExecutionEntity removedExecution)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.cmd.AbstractProcessInstanceModificationCommand
describe, describeFailure, findActivityInstance, findTransitionInstance, getScopeExecutionForActivityInstance, getScopeForActivityInstance, matchesRequestedTransitionInstance, setProcessInstanceId, setSkipCustomListeners, setSkipIoMappings, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cancellationReason

protected String cancellationReason
Constructor Detail

AbstractInstanceCancellationCmd

public AbstractInstanceCancellationCmd(String processInstanceId)

AbstractInstanceCancellationCmd

public AbstractInstanceCancellationCmd(String processInstanceId,
                                       String cancellationReason)
Method Detail

execute

public Void execute(CommandContext commandContext)

handleChildRemovalInScope

protected void handleChildRemovalInScope(ExecutionEntity removedExecution)

determineSourceInstanceExecution

protected abstract ExecutionEntity determineSourceInstanceExecution(CommandContext commandContext)

findSuperExecution

protected ExecutionEntity findSuperExecution(ExecutionEntity parentScopeExecution,
                                             ExecutionEntity topmostCancellableExecution)


Copyright © 2018 camunda services GmbH. All rights reserved.