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
-
- All Implemented Interfaces:
Command<java.lang.Void>
- 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 java.util.DateexecutionDateprotected booleanisProcessDefinitionTenantIdSetprotected java.lang.StringjobDefinitionIdprotected java.lang.StringprocessDefinitionIdprotected java.lang.StringprocessDefinitionKeyprotected java.lang.StringprocessDefinitionTenantId-
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 voidcheckAuthorization(CommandContext commandContext)protected voidcheckParameters(CommandContext commandContext)protected UpdateJobSuspensionStateBuilderImplcreateJobCommandBuilder()protected abstract java.lang.StringgetDelayedExecutionJobHandlerType()Subclasses should return the type of theJobHandlerhere.protected java.lang.StringgetDeploymentId(CommandContext commandContext)protected JobHandlerConfigurationgetJobHandlerConfiguration()protected AbstractSetStateCmdgetNextCommand()protected 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
-
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 java.lang.String jobDefinitionId
-
processDefinitionId
protected java.lang.String processDefinitionId
-
processDefinitionKey
protected java.lang.String processDefinitionKey
-
executionDate
protected java.util.Date executionDate
-
processDefinitionTenantId
protected java.lang.String processDefinitionTenantId
-
isProcessDefinitionTenantIdSet
protected boolean isProcessDefinitionTenantIdSet
-
-
Constructor Detail
-
AbstractSetJobDefinitionStateCmd
public AbstractSetJobDefinitionStateCmd(UpdateJobDefinitionSuspensionStateBuilderImpl builder)
-
-
Method Detail
-
checkParameters
protected void checkParameters(CommandContext commandContext)
- Specified by:
checkParametersin classAbstractSetStateCmd
-
checkAuthorization
protected void checkAuthorization(CommandContext commandContext)
- Specified by:
checkAuthorizationin classAbstractSetStateCmd
-
updateSuspensionState
protected void updateSuspensionState(CommandContext commandContext, SuspensionState suspensionState)
- Specified by:
updateSuspensionStatein classAbstractSetStateCmd
-
getJobHandlerConfiguration
protected JobHandlerConfiguration getJobHandlerConfiguration()
- Overrides:
getJobHandlerConfigurationin classAbstractSetStateCmd
-
logUserOperation
protected void logUserOperation(CommandContext commandContext)
- Specified by:
logUserOperationin classAbstractSetStateCmd
-
createJobCommandBuilder
protected UpdateJobSuspensionStateBuilderImpl createJobCommandBuilder()
-
getDelayedExecutionJobHandlerType
protected abstract java.lang.String 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
protected AbstractSetStateCmd getNextCommand()
- Overrides:
getNextCommandin classAbstractSetStateCmd
-
getDeploymentId
protected java.lang.String getDeploymentId(CommandContext commandContext)
- 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)
-
-