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 SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringprotected booleanprotected Stringprotected Stringprotected StringFields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetStateCmdexecutionDate, includeSubResources, isLogUserOperationDisabled, SUSPENSION_STATE_PROPERTY
- 
Constructor SummaryConstructorsConstructorDescription
- 
Method SummaryModifier 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.AbstractSetStateCmddisableLogUserOperation, execute, getDeploymentIdByJobDefinition, getDeploymentIdByProcessDefinition, getDeploymentIdByProcessDefinitionKey, getLogEntryOperation, getNewSuspensionState, isIncludeSubResources, isLogUserOperationDisabled, scheduleSuspensionStateUpdate, triggerHistoryEvent
- 
Field Details- 
INCLUDE_PROCESS_INSTANCES_PROPERTY- See Also:
 
- 
processDefinitionId
- 
processDefinitionKey
- 
tenantId
- 
isTenantIdSetprotected boolean isTenantIdSet
 
- 
- 
Constructor Details- 
AbstractSetProcessDefinitionStateCmdpublic AbstractSetProcessDefinitionStateCmd(UpdateProcessDefinitionSuspensionStateBuilderImpl builder) 
 
- 
- 
Method Details- 
checkParameters- Specified by:
- checkParametersin class- AbstractSetStateCmd
 
- 
checkAuthorization- Specified by:
- checkAuthorizationin class- AbstractSetStateCmd
 
- 
updateSuspensionStateprotected void updateSuspensionState(CommandContext commandContext, SuspensionState suspensionState) - Specified by:
- updateSuspensionStatein class- AbstractSetStateCmd
 
- 
createJobDefinitionCommandBuilder
- 
createProcessInstanceCommandBuilder
- 
getJobHandlerConfiguration- Overrides:
- getJobHandlerConfigurationin class- AbstractSetStateCmd
 
- 
logUserOperation- Specified by:
- logUserOperationin class- AbstractSetStateCmd
 
- 
getDelayedExecutionJobHandlerTypeSubclasses 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 class- AbstractSetStateCmd
 
- 
getSetJobDefinitionStateCmdprotected 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 class- AbstractSetStateCmd
 
- 
getDeploymentId- Overrides:
- getDeploymentIdin class- AbstractSetStateCmd
- 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
 
- 
getNextCommandprotected abstract AbstractSetProcessInstanceStateCmd getNextCommand(UpdateProcessInstanceSuspensionStateBuilderImpl processInstanceCommandBuilder) 
 
-