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

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

public abstract class AbstractSetJobDefinitionStateCmd
extends AbstractSetStateCmd

Author:
Daniel Meyer, roman.smirnov

Field Summary
protected  Date executionDate
           
protected  boolean isProcessDefinitionTenantIdSet
           
protected  String jobDefinitionId
           
protected  String processDefinitionId
           
protected  String processDefinitionKey
           
protected  String processDefinitionTenantId
           
 
Fields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetStateCmd
includeSubResources, isLogUserOperationDisabled, SUSPENSION_STATE_PROPERTY
 
Constructor Summary
AbstractSetJobDefinitionStateCmd(UpdateJobDefinitionSuspensionStateBuilderImpl builder)
           
 
Method Summary
protected  void checkAuthorization(CommandContext commandContext)
           
protected  void checkParameters(CommandContext commandContext)
           
protected  UpdateJobSuspensionStateBuilderImpl createJobCommandBuilder()
           
protected abstract  String getDelayedExecutionJobHandlerType()
          Subclasses should return the type of the JobHandler here.
protected  JobHandlerConfiguration getJobHandlerConfiguration()
           
protected  AbstractSetStateCmd getNextCommand()
           
protected abstract  AbstractSetJobStateCmd getNextCommand(UpdateJobSuspensionStateBuilderImpl jobCommandBuilder)
           
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

jobDefinitionId

protected String jobDefinitionId

processDefinitionId

protected String processDefinitionId

processDefinitionKey

protected String processDefinitionKey

executionDate

protected Date executionDate

processDefinitionTenantId

protected String processDefinitionTenantId

isProcessDefinitionTenantIdSet

protected boolean isProcessDefinitionTenantIdSet
Constructor Detail

AbstractSetJobDefinitionStateCmd

public AbstractSetJobDefinitionStateCmd(UpdateJobDefinitionSuspensionStateBuilderImpl builder)
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 JobHandlerConfiguration getJobHandlerConfiguration()
Overrides:
getJobHandlerConfiguration in class AbstractSetStateCmd

logUserOperation

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

createJobCommandBuilder

protected UpdateJobSuspensionStateBuilderImpl createJobCommandBuilder()

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

getNextCommand

protected AbstractSetStateCmd getNextCommand()
Overrides:
getNextCommand in class AbstractSetStateCmd

getNextCommand

protected abstract AbstractSetJobStateCmd getNextCommand(UpdateJobSuspensionStateBuilderImpl jobCommandBuilder)


Copyright © 2016 camunda services GmbH. All rights reserved.