org.activiti.engine.impl.cmd
类 AbstractSetProcessDefinitionStateCmd
java.lang.Object
org.activiti.engine.impl.cmd.AbstractSetProcessDefinitionStateCmd
- 所有已实现的接口:
- Command<Void>
- 直接已知子类:
- ActivateProcessDefinitionCmd, SuspendProcessDefinitionCmd
public abstract class AbstractSetProcessDefinitionStateCmd
- extends Object
- implements Command<Void>
- 作者:
- Daniel Meyer, Joram Barrez
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
processDefinitionId
protected String processDefinitionId
processDefinitionKey
protected String processDefinitionKey
processDefinitionEntity
protected ProcessDefinitionEntity processDefinitionEntity
includeProcessInstances
protected boolean includeProcessInstances
executionDate
protected Date executionDate
AbstractSetProcessDefinitionStateCmd
public AbstractSetProcessDefinitionStateCmd(ProcessDefinitionEntity processDefinitionEntity,
boolean includeProcessInstances,
Date executionDate)
AbstractSetProcessDefinitionStateCmd
public AbstractSetProcessDefinitionStateCmd(String processDefinitionId,
String processDefinitionKey,
boolean includeProcessInstances,
Date executionDate)
execute
public Void execute(CommandContext commandContext)
- 指定者:
- 接口
Command<Void>
中的 execute
findProcessDefinition
protected List<ProcessDefinitionEntity> findProcessDefinition(CommandContext commandContext)
createTimerForDelayedExecution
protected void createTimerForDelayedExecution(CommandContext commandContext,
List<ProcessDefinitionEntity> processDefinitions)
changeProcessDefinitionState
protected void changeProcessDefinitionState(CommandContext commandContext,
List<ProcessDefinitionEntity> processDefinitions)
fetchProcessInstancesPage
protected List<ProcessInstance> fetchProcessInstancesPage(CommandContext commandContext,
ProcessDefinition processDefinition,
int currentPageStartIndex)
getProcessDefinitionSuspensionState
protected abstract SuspensionState getProcessDefinitionSuspensionState()
- Subclasses should return the wanted
SuspensionState
here.
getDelayedExecutionJobHandlerType
protected abstract String getDelayedExecutionJobHandlerType()
- Subclasses should return the type of the
JobHandler
here. it will be used when
the user provides an execution date on which the actual state change will happen.
getProcessInstanceChangeStateCmd
protected abstract AbstractSetProcessInstanceStateCmd getProcessInstanceChangeStateCmd(ProcessInstance processInstance)
- Subclasses should return a
Command
implementation that matches the process definition
state change.
Copyright © 2013 Alfresco. All rights reserved.