Package org.camunda.bpm.engine.impl.cmd
Class AbstractSetJobDefinitionStateCmd
- java.lang.Object
-
- org.camunda.bpm.engine.impl.cmd.AbstractSetStateCmd
-
- org.camunda.bpm.engine.impl.cmd.AbstractSetJobDefinitionStateCmd
-
- Direct Known Subclasses:
ActivateJobDefinitionCmd
,SuspendJobDefinitionCmd
public abstract class AbstractSetJobDefinitionStateCmd extends AbstractSetStateCmd
- Author:
- Daniel Meyer, roman.smirnov
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description AbstractSetJobDefinitionStateCmd(UpdateJobDefinitionSuspensionStateBuilderImpl builder)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
checkAuthorization(CommandContext commandContext)
protected void
checkParameters(CommandContext commandContext)
protected UpdateJobSuspensionStateBuilderImpl
createJobCommandBuilder()
protected abstract String
getDelayedExecutionJobHandlerType()
Subclasses should return the type of theJobHandler
here.protected String
getDeploymentId(CommandContext commandContext)
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, getDeploymentIdByJobDefinition, getDeploymentIdByProcessDefinition, getDeploymentIdByProcessDefinitionKey, getLogEntryOperation, getNewSuspensionState, isIncludeSubResources, isLogUserOperationDisabled, scheduleSuspensionStateUpdate, triggerHistoryEvent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
-
-
-
-
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 classAbstractSetStateCmd
-
checkAuthorization
protected void checkAuthorization(CommandContext commandContext)
- Specified by:
checkAuthorization
in classAbstractSetStateCmd
-
updateSuspensionState
protected void updateSuspensionState(CommandContext commandContext, SuspensionState suspensionState)
- Specified by:
updateSuspensionState
in classAbstractSetStateCmd
-
getJobHandlerConfiguration
protected JobHandlerConfiguration getJobHandlerConfiguration()
- Overrides:
getJobHandlerConfiguration
in classAbstractSetStateCmd
-
logUserOperation
protected void logUserOperation(CommandContext commandContext)
- Specified by:
logUserOperation
in classAbstractSetStateCmd
-
createJobCommandBuilder
protected UpdateJobSuspensionStateBuilderImpl createJobCommandBuilder()
-
getDelayedExecutionJobHandlerType
protected abstract String getDelayedExecutionJobHandlerType()
Subclasses should return the type of theJobHandler
here. it will be used when the user provides an execution date on which the actual state change will happen.- Overrides:
getDelayedExecutionJobHandlerType
in classAbstractSetStateCmd
-
getNextCommand
protected AbstractSetStateCmd getNextCommand()
- Overrides:
getNextCommand
in classAbstractSetStateCmd
-
getDeploymentId
protected String getDeploymentId(CommandContext commandContext)
- Overrides:
getDeploymentId
in classAbstractSetStateCmd
- Returns:
- the id of the associated deployment, only necessary if the command
can potentially be executed in a scheduled way (i.e. if an
AbstractSetStateCmd.executionDate
can be set) so the job executor responsible for that deployment can execute the resulting job
-
getNextCommand
protected abstract AbstractSetJobStateCmd getNextCommand(UpdateJobSuspensionStateBuilderImpl jobCommandBuilder)
-
-