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
-
- All Implemented Interfaces:
Command<java.lang.Void>
- Direct Known Subclasses:
ActivateProcessDefinitionCmd
,SuspendProcessDefinitionCmd
public abstract class AbstractSetProcessDefinitionStateCmd extends AbstractSetStateCmd
- Author:
- Daniel Meyer, Joram Barrez, roman.smirnov
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
INCLUDE_PROCESS_INSTANCES_PROPERTY
protected boolean
isTenantIdSet
protected java.lang.String
processDefinitionId
protected java.lang.String
processDefinitionKey
protected java.lang.String
tenantId
-
Fields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetStateCmd
executionDate, includeSubResources, isLogUserOperationDisabled, SUSPENSION_STATE_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description AbstractSetProcessDefinitionStateCmd(UpdateProcessDefinitionSuspensionStateBuilderImpl builder)
-
Method Summary
-
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
-
INCLUDE_PROCESS_INSTANCES_PROPERTY
public static final java.lang.String INCLUDE_PROCESS_INSTANCES_PROPERTY
- See Also:
- Constant Field Values
-
processDefinitionId
protected java.lang.String processDefinitionId
-
processDefinitionKey
protected java.lang.String processDefinitionKey
-
tenantId
protected java.lang.String tenantId
-
isTenantIdSet
protected boolean isTenantIdSet
-
-
Constructor Detail
-
AbstractSetProcessDefinitionStateCmd
public AbstractSetProcessDefinitionStateCmd(UpdateProcessDefinitionSuspensionStateBuilderImpl builder)
-
-
Method Detail
-
checkParameters
protected void checkParameters(CommandContext commandContext)
- Specified by:
checkParameters
in classAbstractSetStateCmd
-
checkAuthorization
protected void checkAuthorization(CommandContext commandContext)
- Specified by:
checkAuthorization
in classAbstractSetStateCmd
-
updateSuspensionState
protected void updateSuspensionState(CommandContext commandContext, SuspensionState suspensionState)
- Specified by:
updateSuspensionState
in classAbstractSetStateCmd
-
createJobDefinitionCommandBuilder
protected UpdateJobDefinitionSuspensionStateBuilderImpl createJobDefinitionCommandBuilder()
-
createProcessInstanceCommandBuilder
protected UpdateProcessInstanceSuspensionStateBuilderImpl createProcessInstanceCommandBuilder()
-
getJobHandlerConfiguration
protected JobHandlerConfiguration getJobHandlerConfiguration()
- Overrides:
getJobHandlerConfiguration
in classAbstractSetStateCmd
-
logUserOperation
protected void logUserOperation(CommandContext commandContext)
- Specified by:
logUserOperation
in classAbstractSetStateCmd
-
getDelayedExecutionJobHandlerType
protected abstract java.lang.String 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
protected AbstractSetProcessInstanceStateCmd getNextCommand()
- Overrides:
getNextCommand
in classAbstractSetStateCmd
-
getDeploymentId
protected java.lang.String getDeploymentId(CommandContext commandContext)
- 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)
-
-