org.camunda.bpm.engine.impl.cmd
Class AbstractSetStateCmd

java.lang.Object
  extended by org.camunda.bpm.engine.impl.cmd.AbstractSetStateCmd
All Implemented Interfaces:
Command<Void>
Direct Known Subclasses:
AbstractSetJobDefinitionStateCmd, AbstractSetJobStateCmd, AbstractSetProcessDefinitionStateCmd, AbstractSetProcessInstanceStateCmd

public abstract class AbstractSetStateCmd
extends Object
implements Command<Void>

Author:
Roman Smirnov

Field Summary
protected  Date executionDate
           
protected  boolean includeSubResources
           
protected  boolean isLogUserOperationDisabled
           
protected static String SUSPENSION_STATE_PROPERTY
           
 
Constructor Summary
AbstractSetStateCmd(boolean includeSubResources, Date executionDate)
           
 
Method Summary
protected abstract  void checkAuthorization(CommandContext commandContext)
           
protected abstract  void checkParameters(CommandContext commandContext)
           
 void disableLogUserOperation()
           
 Void execute(CommandContext commandContext)
           
protected  String getDelayedExecutionJobHandlerType()
           
protected  JobHandlerConfiguration getJobHandlerConfiguration()
           
protected abstract  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
 

Field Detail

SUSPENSION_STATE_PROPERTY

protected static final String SUSPENSION_STATE_PROPERTY
See Also:
Constant Field Values

includeSubResources

protected boolean includeSubResources

isLogUserOperationDisabled

protected boolean isLogUserOperationDisabled

executionDate

protected Date executionDate
Constructor Detail

AbstractSetStateCmd

public AbstractSetStateCmd(boolean includeSubResources,
                           Date executionDate)
Method Detail

execute

public Void execute(CommandContext commandContext)
Specified by:
execute in interface Command<Void>

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 String getDelayedExecutionJobHandlerType()

getJobHandlerConfiguration

protected JobHandlerConfiguration getJobHandlerConfiguration()

getNextCommand

protected AbstractSetStateCmd getNextCommand()

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 String getLogEntryOperation()

getNewSuspensionState

protected abstract SuspensionState getNewSuspensionState()


Copyright © 2018 camunda services GmbH. All rights reserved.