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

java.lang.Object
  extended by org.camunda.bpm.engine.impl.cmd.AbstractSetProcessInstanceStateCmd
All Implemented Interfaces:
Command<Void>
Direct Known Subclasses:
ActivateProcessInstanceCmd, SuspendProcessInstanceCmd

public abstract class AbstractSetProcessInstanceStateCmd
extends Object
implements Command<Void>

Author:
Daniel Meyer, Joram Barrez, roman.smirnov

Field Summary
protected  String processDefinitionId
           
protected  String processDefinitionKey
           
protected  String processInstanceId
           
protected static String SUSPENSION_STATE_PROPERTY
           
 
Constructor Summary
AbstractSetProcessInstanceStateCmd(String processInstanceId, String processDefinitionId, String processDefinitionKey)
           
 
Method Summary
 Void execute(CommandContext commandContext)
           
protected abstract  String getLogEntryOperation()
           
protected abstract  SuspensionState getNewSuspensionState()
          Subclasses should return the wanted SuspensionState here.
protected abstract  AbstractSetJobStateCmd getSetJobStateCmd()
          Subclasses should return the type of the AbstractSetJobStateCmd here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUSPENSION_STATE_PROPERTY

protected static final String SUSPENSION_STATE_PROPERTY
See Also:
Constant Field Values

processInstanceId

protected final String processInstanceId

processDefinitionId

protected String processDefinitionId

processDefinitionKey

protected String processDefinitionKey
Constructor Detail

AbstractSetProcessInstanceStateCmd

public AbstractSetProcessInstanceStateCmd(String processInstanceId,
                                          String processDefinitionId,
                                          String processDefinitionKey)
Method Detail

execute

public Void execute(CommandContext commandContext)
Specified by:
execute in interface Command<Void>

getNewSuspensionState

protected abstract SuspensionState getNewSuspensionState()
Subclasses should return the wanted SuspensionState here.


getSetJobStateCmd

protected abstract AbstractSetJobStateCmd getSetJobStateCmd()
Subclasses should return the type of the AbstractSetJobStateCmd here. It will be used to suspend or activate the Jobs.


getLogEntryOperation

protected abstract String getLogEntryOperation()


Copyright © 2014 camunda services GmbH. All rights reserved.