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
Modifier and TypeFieldDescriptionstatic final String
protected boolean
protected String
protected String
protected String
Fields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetStateCmd
executionDate, includeSubResources, isLogUserOperationDisabled, SUSPENSION_STATE_PROPERTY
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkAuthorization
(CommandContext commandContext) protected void
checkParameters
(CommandContext commandContext) protected abstract String
Subclasses should return the type of theJobHandler
here.protected String
getDeploymentId
(CommandContext commandContext) protected JobHandlerConfiguration
protected AbstractSetProcessInstanceStateCmd
protected abstract AbstractSetProcessInstanceStateCmd
getNextCommand
(UpdateProcessInstanceSuspensionStateBuilderImpl processInstanceCommandBuilder) protected abstract AbstractSetJobDefinitionStateCmd
getSetJobDefinitionStateCmd
(UpdateJobDefinitionSuspensionStateBuilderImpl jobDefinitionSuspensionStateBuilder) Subclasses should return the type of theAbstractSetJobDefinitionStateCmd
here.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
-
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:
checkParameters
in classAbstractSetStateCmd
-
checkAuthorization
- Specified by:
checkAuthorization
in classAbstractSetStateCmd
-
updateSuspensionState
protected void updateSuspensionState(CommandContext commandContext, SuspensionState suspensionState) - Specified by:
updateSuspensionState
in classAbstractSetStateCmd
-
createJobDefinitionCommandBuilder
-
createProcessInstanceCommandBuilder
-
getJobHandlerConfiguration
- Overrides:
getJobHandlerConfiguration
in classAbstractSetStateCmd
-
logUserOperation
- Specified by:
logUserOperation
in classAbstractSetStateCmd
-
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
-
getSetJobDefinitionStateCmd
protected abstract AbstractSetJobDefinitionStateCmd getSetJobDefinitionStateCmd(UpdateJobDefinitionSuspensionStateBuilderImpl jobDefinitionSuspensionStateBuilder) Subclasses should return the type of theAbstractSetJobDefinitionStateCmd
here. It will be used to suspend or activate theJobDefinition
s.- Parameters:
jobDefinitionSuspensionStateBuilder
-
-
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 AbstractSetProcessInstanceStateCmd getNextCommand(UpdateProcessInstanceSuspensionStateBuilderImpl processInstanceCommandBuilder)
-