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 StringINCLUDE_PROCESS_INSTANCES_PROPERTYprotected booleanisTenantIdSetprotected StringprocessDefinitionIdprotected StringprocessDefinitionKeyprotected StringtenantId-
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:
checkParametersin classAbstractSetStateCmd
-
checkAuthorization
protected void checkAuthorization(CommandContext commandContext)
- Specified by:
checkAuthorizationin classAbstractSetStateCmd
-
updateSuspensionState
protected void updateSuspensionState(CommandContext commandContext, SuspensionState suspensionState)
- Specified by:
updateSuspensionStatein classAbstractSetStateCmd
-
createJobDefinitionCommandBuilder
protected UpdateJobDefinitionSuspensionStateBuilderImpl createJobDefinitionCommandBuilder()
-
createProcessInstanceCommandBuilder
protected UpdateProcessInstanceSuspensionStateBuilderImpl createProcessInstanceCommandBuilder()
-
getJobHandlerConfiguration
protected JobHandlerConfiguration getJobHandlerConfiguration()
- Overrides:
getJobHandlerConfigurationin classAbstractSetStateCmd
-
logUserOperation
protected void logUserOperation(CommandContext commandContext)
- Specified by:
logUserOperationin classAbstractSetStateCmd
-
getDelayedExecutionJobHandlerType
protected abstract String 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
protected AbstractSetProcessInstanceStateCmd getNextCommand()
- Overrides:
getNextCommandin classAbstractSetStateCmd
-
getDeploymentId
protected String getDeploymentId(CommandContext commandContext)
- 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)
-
-