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

java.lang.Object
  extended by org.camunda.bpm.engine.impl.cmd.AbstractSetProcessDefinitionStateCmd
      extended by org.camunda.bpm.engine.impl.cmd.SuspendProcessDefinitionCmd
All Implemented Interfaces:
Command<Void>

public class SuspendProcessDefinitionCmd
extends AbstractSetProcessDefinitionStateCmd

Author:
Daniel Meyer, Joram Barrez, roman.smirnov

Field Summary
 
Fields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetProcessDefinitionStateCmd
executionDate, includeProcessInstances, processDefinitionEntity, processDefinitionId, processDefinitionKey
 
Constructor Summary
SuspendProcessDefinitionCmd(ProcessDefinitionEntity processDefinitionEntity, boolean includeProcessInstances, Date executionDate)
           
SuspendProcessDefinitionCmd(String processDefinitionId, String processDefinitionKey, boolean suspendProcessInstances, Date suspensionDate)
           
 
Method Summary
protected  String getDelayedExecutionJobHandlerType()
          Subclasses should return the type of the JobHandler here.
protected  SuspensionState getProcessDefinitionSuspensionState()
          Subclasses should return the wanted SuspensionState here.
protected  AbstractSetJobDefinitionStateCmd getSetJobDefinitionStateCmd()
          Subclasses should return the type of the AbstractSetJobDefinitionStateCmd here.
protected  AbstractSetProcessInstanceStateCmd getSetProcessInstanceStateCmd()
          Subclasses should return the type of the AbstractSetProcessInstanceStateCmd here.
 
Methods inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetProcessDefinitionStateCmd
execute, scheduleSuspensionStateUpdate, updateSuspensionState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuspendProcessDefinitionCmd

public SuspendProcessDefinitionCmd(ProcessDefinitionEntity processDefinitionEntity,
                                   boolean includeProcessInstances,
                                   Date executionDate)

SuspendProcessDefinitionCmd

public SuspendProcessDefinitionCmd(String processDefinitionId,
                                   String processDefinitionKey,
                                   boolean suspendProcessInstances,
                                   Date suspensionDate)
Method Detail

getProcessDefinitionSuspensionState

protected SuspensionState getProcessDefinitionSuspensionState()
Description copied from class: AbstractSetProcessDefinitionStateCmd
Subclasses should return the wanted SuspensionState here.

Specified by:
getProcessDefinitionSuspensionState in class AbstractSetProcessDefinitionStateCmd

getDelayedExecutionJobHandlerType

protected String getDelayedExecutionJobHandlerType()
Description copied from class: AbstractSetProcessDefinitionStateCmd
Subclasses should return the type of the JobHandler here. it will be used when the user provides an execution date on which the actual state change will happen.

Specified by:
getDelayedExecutionJobHandlerType in class AbstractSetProcessDefinitionStateCmd

getSetJobDefinitionStateCmd

protected AbstractSetJobDefinitionStateCmd getSetJobDefinitionStateCmd()
Description copied from class: AbstractSetProcessDefinitionStateCmd
Subclasses should return the type of the AbstractSetJobDefinitionStateCmd here. It will be used to suspend or activate the JobDefinitions.

Specified by:
getSetJobDefinitionStateCmd in class AbstractSetProcessDefinitionStateCmd

getSetProcessInstanceStateCmd

protected AbstractSetProcessInstanceStateCmd getSetProcessInstanceStateCmd()
Description copied from class: AbstractSetProcessDefinitionStateCmd
Subclasses should return the type of the AbstractSetProcessInstanceStateCmd here. It will be used to suspend or activate the ProcessInstances.

Specified by:
getSetProcessInstanceStateCmd in class AbstractSetProcessDefinitionStateCmd


Copyright © 2014 camunda services GmbH. All rights reserved.