public abstract class NeedsActiveTaskCmd<T> extends Object implements Command<T>, Serializable
Command
implementations that want to verify the provided task is always active (ie. not suspended).Constructor and Description |
---|
NeedsActiveTaskCmd(String taskId) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected String taskId
public NeedsActiveTaskCmd(String taskId)
public T execute(CommandContext commandContext)
execute
in interface BaseCommand<T,CommandContext>
execute
in interface Command<T>
protected abstract T execute(CommandContext commandContext, TaskEntity task)
protected String getSuspendedTaskException()
Copyright © 2016 Flowable. All rights reserved.