public interface ExecutionContext
ActionHandlers,
and allows them to execute sub-actions. These actions can be automatically rolled back if any part of the action
handler fails.| Modifier and Type | Method and Description |
|---|---|
<A extends Action<R>,R extends Result> |
execute(A action)
Executes an action in the current context.
|
<A extends Action<R>,R extends Result> |
undo(A action,
R result)
Undoes an action in the current context.
|
<A extends Action<R>,R extends Result> R execute(A action) throws ActionException, ServiceException
A - The Action type.R - The Result type.action - The Action.Result.ActionException - if the action execution failed.ServiceException - if the execution failed due to a service error.<A extends Action<R>,R extends Result> void undo(A action, R result) throws ActionException, ServiceException
A - The Action type.R - The Result type.action - The Action.ActionException - if the action execution failed.ServiceException - if the execution failed due to a service error.Copyright © 2010–2016 Arcbees. All rights reserved.