Class NeedsActiveTaskCmd<T>
java.lang.Object
org.flowable.engine.impl.cmd.NeedsActiveTaskCmd<T>
- All Implemented Interfaces:
Serializable, Command<T>
- Direct Known Subclasses:
AddIdentityLinkCmd, ClaimTaskCmd, CompleteTaskCmd, CompleteTaskWithFormCmd, DelegateTaskCmd, DeleteIdentityLinkCmd, RemoveTaskVariablesCmd, ResolveTaskCmd, SetTaskDueDateCmd, SetTaskPriorityCmd, SetTaskVariablesCmd, StartProgressTaskCmd, SubmitTaskFormCmd, SuspendTaskCmd
An abstract superclass for
Command implementations that want to verify the provided task is always active (ie. not suspended).- Author:
- Joram Barrez
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(CommandContext commandContext) protected abstract Texecute(CommandContext commandContext, TaskEntity task) Subclasses must implement in this method their normal command logic.protected StringSubclasses can override this method to provide a customized exception message that will be thrown when the task is suspended.
-
Field Details
-
taskId
-
-
Constructor Details
-
NeedsActiveTaskCmd
-
-
Method Details
-
execute
-
execute
Subclasses must implement in this method their normal command logic. The provided task is ensured to be active. -
getSuspendedTaskExceptionPrefix
Subclasses can override this method to provide a customized exception message that will be thrown when the task is suspended.
-