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.DateexecutionDateprotected booleanincludeSubResourcesprotected booleanisLogUserOperationDisabledprotected static java.lang.StringSUSPENSION_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 voidcheckAuthorization(CommandContext commandContext)protected abstract voidcheckParameters(CommandContext commandContext)voiddisableLogUserOperation()java.lang.Voidexecute(CommandContext commandContext)protected java.lang.StringgetDelayedExecutionJobHandlerType()protected java.lang.StringgetDeploymentId(CommandContext commandContext)protected java.lang.StringgetDeploymentIdByJobDefinition(CommandContext commandContext, java.lang.String jobDefinitionId)protected java.lang.StringgetDeploymentIdByProcessDefinition(CommandContext commandContext, java.lang.String processDefinitionId)protected java.lang.StringgetDeploymentIdByProcessDefinitionKey(CommandContext commandContext, java.lang.String processDefinitionKey, boolean tenantIdSet, java.lang.String tenantId)protected JobHandlerConfigurationgetJobHandlerConfiguration()protected abstract java.lang.StringgetLogEntryOperation()protected abstract SuspensionStategetNewSuspensionState()protected AbstractSetStateCmdgetNextCommand()protected booleanisIncludeSubResources()protected booleanisLogUserOperationDisabled()protected abstract voidlogUserOperation(CommandContext commandContext)protected voidscheduleSuspensionStateUpdate(CommandContext commandContext)protected voidtriggerHistoryEvent(CommandContext commandContext)protected abstract voidupdateSuspensionState(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
executionDatecan 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)
-
-