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

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

public abstract class AbstractSetProcessDefinitionStateCmd
extends Object
implements Command<Void>

Author:
Daniel Meyer, Joram Barrez, roman.smirnov

Field Summary
protected  Date executionDate
           
protected  boolean includeProcessInstances
           
protected  ProcessDefinitionEntity processDefinitionEntity
           
protected  String processDefinitionId
           
protected  String processDefinitionKey
           
 
Constructor Summary
AbstractSetProcessDefinitionStateCmd(ProcessDefinitionEntity processDefinitionEntity, boolean includeProcessInstances, Date executionDate)
           
AbstractSetProcessDefinitionStateCmd(String processDefinitionId, String processDefinitionKey, boolean includeProcessInstances, Date executionDate)
           
 
Method Summary
 Void execute(CommandContext commandContext)
           
protected abstract  String getDelayedExecutionJobHandlerType()
          Subclasses should return the type of the JobHandler here.
protected abstract  SuspensionState getProcessDefinitionSuspensionState()
          Subclasses should return the wanted SuspensionState here.
protected abstract  AbstractSetJobDefinitionStateCmd getSetJobDefinitionStateCmd()
          Subclasses should return the type of the AbstractSetJobDefinitionStateCmd here.
protected abstract  AbstractSetProcessInstanceStateCmd getSetProcessInstanceStateCmd()
          Subclasses should return the type of the AbstractSetProcessInstanceStateCmd here.
protected  void scheduleSuspensionStateUpdate(CommandContext commandContext)
           
protected  void updateSuspensionState(CommandContext commandContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

processDefinitionId

protected String processDefinitionId

processDefinitionKey

protected String processDefinitionKey

processDefinitionEntity

protected ProcessDefinitionEntity processDefinitionEntity

includeProcessInstances

protected boolean includeProcessInstances

executionDate

protected Date executionDate
Constructor Detail

AbstractSetProcessDefinitionStateCmd

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

AbstractSetProcessDefinitionStateCmd

public AbstractSetProcessDefinitionStateCmd(String processDefinitionId,
                                            String processDefinitionKey,
                                            boolean includeProcessInstances,
                                            Date executionDate)
Method Detail

execute

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

scheduleSuspensionStateUpdate

protected void scheduleSuspensionStateUpdate(CommandContext commandContext)

updateSuspensionState

protected void updateSuspensionState(CommandContext commandContext)

getProcessDefinitionSuspensionState

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


getDelayedExecutionJobHandlerType

protected abstract String getDelayedExecutionJobHandlerType()
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.


getSetJobDefinitionStateCmd

protected abstract AbstractSetJobDefinitionStateCmd getSetJobDefinitionStateCmd()
Subclasses should return the type of the AbstractSetJobDefinitionStateCmd here. It will be used to suspend or activate the JobDefinitions.


getSetProcessInstanceStateCmd

protected abstract AbstractSetProcessInstanceStateCmd getSetProcessInstanceStateCmd()
Subclasses should return the type of the AbstractSetProcessInstanceStateCmd here. It will be used to suspend or activate the ProcessInstances.



Copyright © 2014 camunda services GmbH. All rights reserved.