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

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

public abstract class AbstractSetProcessDefinitionStateCmd
extends AbstractSetStateCmd

Author:
Daniel Meyer, Joram Barrez, roman.smirnov

Field Summary
protected  Date executionDate
           
protected  ProcessDefinitionEntity processDefinitionEntity
           
protected  String processDefinitionId
           
protected  String processDefinitionKey
           
 
Fields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetStateCmd
includeSubResources, isLogUserOperationDisabled, SUSPENSION_STATE_PROPERTY
 
Constructor Summary
AbstractSetProcessDefinitionStateCmd(ProcessDefinitionEntity processDefinitionEntity, boolean includeProcessInstances, Date executionDate)
           
AbstractSetProcessDefinitionStateCmd(String processDefinitionId, String processDefinitionKey, boolean includeProcessInstances, Date executionDate)
           
 
Method Summary
protected  void checkAuthorization(CommandContext commandContext)
           
protected  void checkParameters(CommandContext commandContext)
           
protected abstract  String getDelayedExecutionJobHandlerType()
          Subclasses should return the type of the JobHandler here.
protected  String getJobHandlerConfiguration()
           
protected abstract  AbstractSetProcessInstanceStateCmd getNextCommand()
           
protected abstract  AbstractSetJobDefinitionStateCmd getSetJobDefinitionStateCmd()
          Subclasses should return the type of the AbstractSetJobDefinitionStateCmd here.
protected  void logUserOperation(CommandContext commandContext)
           
protected  void updateSuspensionState(CommandContext commandContext, SuspensionState suspensionState)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetStateCmd
disableLogUserOperation, execute, getLogEntryOperation, getNewSuspensionState, isIncludeSubResources, isLogUserOperationDisabled, scheduleSuspensionStateUpdate
 
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

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

checkParameters

protected void checkParameters(CommandContext commandContext)
Specified by:
checkParameters in class AbstractSetStateCmd

checkAuthorization

protected void checkAuthorization(CommandContext commandContext)
Specified by:
checkAuthorization in class AbstractSetStateCmd

updateSuspensionState

protected void updateSuspensionState(CommandContext commandContext,
                                     SuspensionState suspensionState)
Specified by:
updateSuspensionState in class AbstractSetStateCmd

getJobHandlerConfiguration

protected String getJobHandlerConfiguration()
Overrides:
getJobHandlerConfiguration in class AbstractSetStateCmd

logUserOperation

protected void logUserOperation(CommandContext commandContext)
Specified by:
logUserOperation in class AbstractSetStateCmd

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.

Overrides:
getDelayedExecutionJobHandlerType in class AbstractSetStateCmd

getSetJobDefinitionStateCmd

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


getNextCommand

protected abstract AbstractSetProcessInstanceStateCmd getNextCommand()
Overrides:
getNextCommand in class AbstractSetStateCmd


Copyright © 2015 camunda services GmbH. All rights reserved.