public abstract class NeedsActiveExecutionCmd<T> extends Object implements Command<T>, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
executionId |
| Constructor and Description |
|---|
NeedsActiveExecutionCmd(String executionId) |
| Modifier and Type | Method and Description |
|---|---|
T |
execute(CommandContext commandContext) |
protected abstract T |
execute(CommandContext commandContext,
ExecutionEntity execution)
Subclasses should implement this method.
|
protected String |
getSuspendedExceptionMessage()
Subclasses can override this to provide a more detailed exception message
that will be thrown when the execution is suspended.
|
protected String executionId
public NeedsActiveExecutionCmd(String executionId)
public T execute(CommandContext commandContext)
protected abstract T execute(CommandContext commandContext, ExecutionEntity execution)
ExecutionEntity is guaranteed to be active (ie. not suspended).protected String getSuspendedExceptionMessage()
Copyright © 2016 Alfresco. All rights reserved.