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

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

public class ActivateProcessDefinitionCmd
extends AbstractSetProcessDefinitionStateCmd

Author:
Daniel Meyer, Joram Barrez, roman.smirnov

Field Summary
 
Fields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetProcessDefinitionStateCmd
executionDate, processDefinitionEntity, processDefinitionId, processDefinitionKey
 
Fields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetStateCmd
includeSubResources, isLogUserOperationDisabled, SUSPENSION_STATE_PROPERTY
 
Constructor Summary
ActivateProcessDefinitionCmd(ProcessDefinitionEntity processDefinitionEntity, boolean includeProcessInstances, Date executionDate)
           
ActivateProcessDefinitionCmd(String processDefinitionId, String processDefinitionKey, boolean includeProcessInstances, Date executionDate)
           
 
Method Summary
protected  String getDelayedExecutionJobHandlerType()
          Subclasses should return the type of the JobHandler here.
protected  String getLogEntryOperation()
           
protected  SuspensionState getNewSuspensionState()
           
protected  ActivateProcessInstanceCmd getNextCommand()
           
protected  AbstractSetJobDefinitionStateCmd getSetJobDefinitionStateCmd()
          Subclasses should return the type of the AbstractSetJobDefinitionStateCmd here.
 
Methods inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetProcessDefinitionStateCmd
checkAuthorization, checkParameters, getJobHandlerConfiguration, logUserOperation, updateSuspensionState
 
Methods inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetStateCmd
disableLogUserOperation, execute, isIncludeSubResources, isLogUserOperationDisabled, scheduleSuspensionStateUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivateProcessDefinitionCmd

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

ActivateProcessDefinitionCmd

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

getNewSuspensionState

protected SuspensionState getNewSuspensionState()
Specified by:
getNewSuspensionState in class AbstractSetStateCmd

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

getNextCommand

protected ActivateProcessInstanceCmd getNextCommand()
Specified by:
getNextCommand in class AbstractSetProcessDefinitionStateCmd

getLogEntryOperation

protected String getLogEntryOperation()
Specified by:
getLogEntryOperation in class AbstractSetStateCmd


Copyright © 2015 camunda services GmbH. All rights reserved.