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
- Author:
- Daniel Meyer, roman.smirnov
-
Field Summary
Modifier and TypeFieldDescriptionprotected Date
protected boolean
protected String
protected String
protected String
protected String
Fields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetStateCmd
includeSubResources, isLogUserOperationDisabled, SUSPENSION_STATE_PROPERTY
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkAuthorization
(CommandContext commandContext) protected void
checkParameters
(CommandContext commandContext) protected UpdateJobSuspensionStateBuilderImpl
protected abstract String
Subclasses should return the type of theJobHandler
here.protected String
getDeploymentId
(CommandContext commandContext) protected JobHandlerConfiguration
protected AbstractSetStateCmd
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 Details
-
jobDefinitionId
-
processDefinitionId
-
processDefinitionKey
-
executionDate
-
processDefinitionTenantId
-
isProcessDefinitionTenantIdSet
protected boolean isProcessDefinitionTenantIdSet
-
-
Constructor Details
-
AbstractSetJobDefinitionStateCmd
-
-
Method Details
-
checkParameters
- Specified by:
checkParameters
in classAbstractSetStateCmd
-
checkAuthorization
- Specified by:
checkAuthorization
in classAbstractSetStateCmd
-
updateSuspensionState
protected void updateSuspensionState(CommandContext commandContext, SuspensionState suspensionState) - Specified by:
updateSuspensionState
in classAbstractSetStateCmd
-
getJobHandlerConfiguration
- Overrides:
getJobHandlerConfiguration
in classAbstractSetStateCmd
-
logUserOperation
- Specified by:
logUserOperation
in classAbstractSetStateCmd
-
createJobCommandBuilder
-
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
- Overrides:
getNextCommand
in classAbstractSetStateCmd
-
getDeploymentId
- 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)
-