Package org.camunda.bpm.engine.impl.cmd
Class AbstractSetProcessDefinitionStateCmd
java.lang.Object
org.camunda.bpm.engine.impl.cmd.AbstractSetStateCmd
org.camunda.bpm.engine.impl.cmd.AbstractSetProcessDefinitionStateCmd
- Direct Known Subclasses:
ActivateProcessDefinitionCmd,SuspendProcessDefinitionCmd
- Author:
- Daniel Meyer, Joram Barrez, roman.smirnov
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected booleanprotected Stringprotected Stringprotected StringFields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetStateCmd
executionDate, includeSubResources, isLogUserOperationDisabled, SUSPENSION_STATE_PROPERTY -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckAuthorization(CommandContext commandContext) protected voidcheckParameters(CommandContext commandContext) protected abstract StringSubclasses should return the type of theJobHandlerhere.protected StringgetDeploymentId(CommandContext commandContext) protected JobHandlerConfigurationprotected AbstractSetProcessInstanceStateCmdprotected abstract AbstractSetProcessInstanceStateCmdgetNextCommand(UpdateProcessInstanceSuspensionStateBuilderImpl processInstanceCommandBuilder) protected abstract AbstractSetJobDefinitionStateCmdgetSetJobDefinitionStateCmd(UpdateJobDefinitionSuspensionStateBuilderImpl jobDefinitionSuspensionStateBuilder) Subclasses should return the type of theAbstractSetJobDefinitionStateCmdhere.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
-
INCLUDE_PROCESS_INSTANCES_PROPERTY
- See Also:
-
processDefinitionId
-
processDefinitionKey
-
tenantId
-
isTenantIdSet
protected boolean isTenantIdSet
-
-
Constructor Details
-
AbstractSetProcessDefinitionStateCmd
public AbstractSetProcessDefinitionStateCmd(UpdateProcessDefinitionSuspensionStateBuilderImpl builder)
-
-
Method Details
-
checkParameters
- Specified by:
checkParametersin classAbstractSetStateCmd
-
checkAuthorization
- Specified by:
checkAuthorizationin classAbstractSetStateCmd
-
updateSuspensionState
protected void updateSuspensionState(CommandContext commandContext, SuspensionState suspensionState) - Specified by:
updateSuspensionStatein classAbstractSetStateCmd
-
createJobDefinitionCommandBuilder
-
createProcessInstanceCommandBuilder
-
getJobHandlerConfiguration
- Overrides:
getJobHandlerConfigurationin classAbstractSetStateCmd
-
logUserOperation
- Specified by:
logUserOperationin classAbstractSetStateCmd
-
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
-
getSetJobDefinitionStateCmd
protected abstract AbstractSetJobDefinitionStateCmd getSetJobDefinitionStateCmd(UpdateJobDefinitionSuspensionStateBuilderImpl jobDefinitionSuspensionStateBuilder) Subclasses should return the type of theAbstractSetJobDefinitionStateCmdhere. It will be used to suspend or activate theJobDefinitions.- Parameters:
jobDefinitionSuspensionStateBuilder-
-
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 AbstractSetProcessInstanceStateCmd getNextCommand(UpdateProcessInstanceSuspensionStateBuilderImpl processInstanceCommandBuilder)
-