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

字段摘要
protected  Date executionDate
           
protected  boolean includeProcessInstances
           
protected  ProcessDefinitionEntity processDefinitionEntity
           
protected  String processDefinitionId
           
protected  String processDefinitionKey
           
 
构造方法摘要
AbstractSetProcessDefinitionStateCmd(ProcessDefinitionEntity processDefinitionEntity, boolean includeProcessInstances, Date executionDate)
           
AbstractSetProcessDefinitionStateCmd(String processDefinitionId, String processDefinitionKey, boolean includeProcessInstances, Date executionDate)
           
 
方法摘要
protected  void changeProcessDefinitionState(CommandContext commandContext, List<ProcessDefinitionEntity> processDefinitions)
           
protected  void createTimerForDelayedExecution(CommandContext commandContext, List<ProcessDefinitionEntity> processDefinitions)
           
 Void execute(CommandContext commandContext)
           
protected  List<ProcessInstance> fetchProcessInstancesPage(CommandContext commandContext, ProcessDefinition processDefinition, int currentPageStartIndex)
           
protected  List<ProcessDefinitionEntity> findProcessDefinition(CommandContext commandContext)
           
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.
protected abstract  SuspensionState getProcessDefinitionSuspensionState()
          Subclasses should return the wanted SuspensionState here.
protected abstract  AbstractSetProcessInstanceStateCmd getProcessInstanceChangeStateCmd(ProcessInstance processInstance)
          Subclasses should return a Command implementation that matches the process definition state change.
 
从类 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.