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
           
 
Constructor Summary
AbstractSetProcessInstanceStateCmd(String processInstanceId, String processDefinitionId, String processDefinitionKey)
           
 
Method Summary
 Void execute(CommandContext commandContext)
           
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

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.



Copyright © 2014 camunda services GmbH. All Rights Reserved.