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
public abstract class AbstractSetProcessDefinitionStateCmd extends AbstractSetStateCmd
- Author:
- Daniel Meyer, Joram Barrez, roman.smirnov
-
-
Field Summary
Fields Modifier and Type Field Description static String
INCLUDE_PROCESS_INSTANCES_PROPERTY
protected boolean
isTenantIdSet
protected String
processDefinitionId
protected String
processDefinitionKey
protected 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 String INCLUDE_PROCESS_INSTANCES_PROPERTY
- See Also:
- Constant Field Values
-
processDefinitionId
protected String processDefinitionId
-
processDefinitionKey
protected String processDefinitionKey
-
tenantId
protected 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 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 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)
-
-