org.activiti.engine.impl.cmd
类 NeedsActiveTaskCmd<T>

java.lang.Object
  继承者 org.activiti.engine.impl.cmd.NeedsActiveTaskCmd<T>
所有已实现的接口:
Serializable, Command<T>
直接已知子类:
AddIdentityLinkCmd, ClaimTaskCmd, CompleteTaskCmd, DelegateTaskCmd, DeleteIdentityLinkCmd, RemoveTaskVariablesCmd, ResolveTaskCmd, SetTaskDueDateCmd, SetTaskPriorityCmd, SetTaskVariablesCmd, SubmitTaskFormCmd

public abstract class NeedsActiveTaskCmd<T>
extends Object
implements Command<T>, Serializable

An abstract superclass for Command implementations that want to verify the provided task is always active (ie. not suspended).

作者:
Joram Barrez
另请参见:
序列化表格

字段摘要
protected  String taskId
           
 
构造方法摘要
NeedsActiveTaskCmd(String taskId)
           
 
方法摘要
 T execute(CommandContext commandContext)
           
protected abstract  T execute(CommandContext commandContext, TaskEntity task)
          Subclasses must implement in this method their normal command logic.
protected  String getSuspendedTaskException()
          Subclasses can override this method to provide a customized exception message that will be thrown when the task is suspended.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

taskId

protected String taskId
构造方法详细信息

NeedsActiveTaskCmd

public NeedsActiveTaskCmd(String taskId)
方法详细信息

execute

public T execute(CommandContext commandContext)
指定者:
接口 Command<T> 中的 execute

execute

protected abstract T execute(CommandContext commandContext,
                             TaskEntity task)
Subclasses must implement in this method their normal command logic. The provided task is ensured to be active.


getSuspendedTaskException

protected String getSuspendedTaskException()
Subclasses can override this method to provide a customized exception message that will be thrown when the task is suspended.



Copyright © 2013 Alfresco. All rights reserved.