Package org.activiti.engine.impl.cmd
Class NeedsActiveTaskCmd<T>
- java.lang.Object
-
- org.activiti.engine.impl.cmd.NeedsActiveTaskCmd<T>
-
- All Implemented Interfaces:
java.io.Serializable
,Command<T>
- Direct Known Subclasses:
AbstractCompleteTaskCmd
,AddIdentityLinkCmd
,ClaimTaskCmd
,DelegateTaskCmd
,DeleteIdentityLinkCmd
,RemoveTaskVariablesCmd
,ResolveTaskCmd
,SetTaskDueDateCmd
,SetTaskPriorityCmd
,SetTaskVariablesCmd
public abstract class NeedsActiveTaskCmd<T> extends java.lang.Object implements Command<T>, java.io.Serializable
An abstract superclass forCommand
implementations that want to verify the provided task is always active (ie. not suspended).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
taskId
-
Constructor Summary
Constructors Constructor Description NeedsActiveTaskCmd(java.lang.String taskId)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
execute(CommandContext commandContext)
protected abstract T
execute(CommandContext commandContext, TaskEntity task)
Subclasses must implement in this method their normal command logic.protected java.lang.String
getSuspendedTaskException()
Subclasses can override this method to provide a customized exception message that will be thrown when the task is suspended.
-
-
-
Method Detail
-
execute
public T execute(CommandContext commandContext)
-
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 java.lang.String getSuspendedTaskException()
Subclasses can override this method to provide a customized exception message that will be thrown when the task is suspended.
-
-