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
FieldsModifier and TypeFieldDescriptionprotected Dateprotected booleanprotected Stringprotected Stringprotected Stringprotected StringFields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetStateCmd
includeSubResources, isLogUserOperationDisabled, SUSPENSION_STATE_PROPERTY -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckAuthorization(CommandContext commandContext) protected voidcheckParameters(CommandContext commandContext) protected UpdateJobSuspensionStateBuilderImplprotected abstract StringSubclasses should return the type of theJobHandlerhere.protected StringgetDeploymentId(CommandContext commandContext) protected JobHandlerConfigurationprotected AbstractSetStateCmdprotected abstract AbstractSetJobStateCmdgetNextCommand(UpdateJobSuspensionStateBuilderImpl jobCommandBuilder) protected voidlogUserOperation(CommandContext commandContext) protected voidupdateSuspensionState(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
-
Field Details
-
jobDefinitionId
-
processDefinitionId
-
processDefinitionKey
-
executionDate
-
processDefinitionTenantId
-
isProcessDefinitionTenantIdSet
protected boolean isProcessDefinitionTenantIdSet
-
-
Constructor Details
-
AbstractSetJobDefinitionStateCmd
-
-
Method Details
-
checkParameters
- Specified by:
checkParametersin classAbstractSetStateCmd
-
checkAuthorization
- Specified by:
checkAuthorizationin classAbstractSetStateCmd
-
updateSuspensionState
protected void updateSuspensionState(CommandContext commandContext, SuspensionState suspensionState) - Specified by:
updateSuspensionStatein classAbstractSetStateCmd
-
getJobHandlerConfiguration
- Overrides:
getJobHandlerConfigurationin classAbstractSetStateCmd
-
logUserOperation
- Specified by:
logUserOperationin classAbstractSetStateCmd
-
createJobCommandBuilder
-
getDelayedExecutionJobHandlerType
Subclasses should return the type of theJobHandlerhere. it will be used when the user provides an execution date on which the actual state change will happen.- Overrides:
getDelayedExecutionJobHandlerTypein classAbstractSetStateCmd
-
getNextCommand
- Overrides:
getNextCommandin classAbstractSetStateCmd
-
getDeploymentId
- Overrides:
getDeploymentIdin 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.executionDatecan be set) so the job executor responsible for that deployment can execute the resulting job
-
getNextCommand
protected abstract AbstractSetJobStateCmd getNextCommand(UpdateJobSuspensionStateBuilderImpl jobCommandBuilder)
-