Package org.camunda.bpm.engine.impl.cmd
Class AbstractSetStateCmd
- java.lang.Object
-
- org.camunda.bpm.engine.impl.cmd.AbstractSetStateCmd
-
- All Implemented Interfaces:
Command<java.lang.Void>
- Direct Known Subclasses:
AbstractSetJobDefinitionStateCmd
,AbstractSetJobStateCmd
,AbstractSetProcessDefinitionStateCmd
,AbstractSetProcessInstanceStateCmd
public abstract class AbstractSetStateCmd extends java.lang.Object implements Command<java.lang.Void>
- Author:
- Roman Smirnov
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Date
executionDate
protected boolean
includeSubResources
protected boolean
isLogUserOperationDisabled
protected static java.lang.String
SUSPENSION_STATE_PROPERTY
-
Constructor Summary
Constructors Constructor Description AbstractSetStateCmd(boolean includeSubResources, java.util.Date executionDate)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
checkAuthorization(CommandContext commandContext)
protected abstract void
checkParameters(CommandContext commandContext)
void
disableLogUserOperation()
java.lang.Void
execute(CommandContext commandContext)
protected java.lang.String
getDelayedExecutionJobHandlerType()
protected java.lang.String
getDeploymentId(CommandContext commandContext)
protected java.lang.String
getDeploymentIdByJobDefinition(CommandContext commandContext, java.lang.String jobDefinitionId)
protected java.lang.String
getDeploymentIdByProcessDefinition(CommandContext commandContext, java.lang.String processDefinitionId)
protected java.lang.String
getDeploymentIdByProcessDefinitionKey(CommandContext commandContext, java.lang.String processDefinitionKey, boolean tenantIdSet, java.lang.String tenantId)
protected JobHandlerConfiguration
getJobHandlerConfiguration()
protected abstract java.lang.String
getLogEntryOperation()
protected abstract SuspensionState
getNewSuspensionState()
protected AbstractSetStateCmd
getNextCommand()
protected boolean
isIncludeSubResources()
protected boolean
isLogUserOperationDisabled()
protected abstract void
logUserOperation(CommandContext commandContext)
protected void
scheduleSuspensionStateUpdate(CommandContext commandContext)
protected void
triggerHistoryEvent(CommandContext commandContext)
protected abstract void
updateSuspensionState(CommandContext commandContext, SuspensionState suspensionState)
-
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
-
SUSPENSION_STATE_PROPERTY
protected static final java.lang.String SUSPENSION_STATE_PROPERTY
- See Also:
- Constant Field Values
-
includeSubResources
protected boolean includeSubResources
-
isLogUserOperationDisabled
protected boolean isLogUserOperationDisabled
-
executionDate
protected java.util.Date executionDate
-
-
Method Detail
-
execute
public java.lang.Void execute(CommandContext commandContext)
-
triggerHistoryEvent
protected void triggerHistoryEvent(CommandContext commandContext)
-
disableLogUserOperation
public void disableLogUserOperation()
-
isLogUserOperationDisabled
protected boolean isLogUserOperationDisabled()
-
isIncludeSubResources
protected boolean isIncludeSubResources()
-
scheduleSuspensionStateUpdate
protected void scheduleSuspensionStateUpdate(CommandContext commandContext)
-
getDelayedExecutionJobHandlerType
protected java.lang.String getDelayedExecutionJobHandlerType()
-
getJobHandlerConfiguration
protected JobHandlerConfiguration getJobHandlerConfiguration()
-
getNextCommand
protected AbstractSetStateCmd getNextCommand()
-
getDeploymentId
protected java.lang.String getDeploymentId(CommandContext commandContext)
- Returns:
- the id of the associated deployment, only necessary if the command
can potentially be executed in a scheduled way (i.e. if an
executionDate
can be set) so the job executor responsible for that deployment can execute the resulting job
-
checkAuthorization
protected abstract void checkAuthorization(CommandContext commandContext)
-
checkParameters
protected abstract void checkParameters(CommandContext commandContext)
-
updateSuspensionState
protected abstract void updateSuspensionState(CommandContext commandContext, SuspensionState suspensionState)
-
logUserOperation
protected abstract void logUserOperation(CommandContext commandContext)
-
getLogEntryOperation
protected abstract java.lang.String getLogEntryOperation()
-
getNewSuspensionState
protected abstract SuspensionState getNewSuspensionState()
-
getDeploymentIdByProcessDefinition
protected java.lang.String getDeploymentIdByProcessDefinition(CommandContext commandContext, java.lang.String processDefinitionId)
-
getDeploymentIdByProcessDefinitionKey
protected java.lang.String getDeploymentIdByProcessDefinitionKey(CommandContext commandContext, java.lang.String processDefinitionKey, boolean tenantIdSet, java.lang.String tenantId)
-
getDeploymentIdByJobDefinition
protected java.lang.String getDeploymentIdByJobDefinition(CommandContext commandContext, java.lang.String jobDefinitionId)
-
-