public abstract class AbstractAction extends Object implements org.springframework.statemachine.action.Action<SkipperStateMachineService.SkipperStates,SkipperStateMachineService.SkipperEvents>
Actions wanting to automatically wrap its execution in
try/catch and add exception into extended state for further processing for
interested parties.| Constructor and Description |
|---|
AbstractAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(org.springframework.statemachine.StateContext<SkipperStateMachineService.SkipperStates,SkipperStateMachineService.SkipperEvents> context) |
protected abstract void |
executeInternal(org.springframework.statemachine.StateContext<SkipperStateMachineService.SkipperStates,SkipperStateMachineService.SkipperEvents> context)
Internal execution similar to
Action.execute(StateContext). |
public final void execute(org.springframework.statemachine.StateContext<SkipperStateMachineService.SkipperStates,SkipperStateMachineService.SkipperEvents> context)
execute in interface org.springframework.statemachine.action.Action<SkipperStateMachineService.SkipperStates,SkipperStateMachineService.SkipperEvents>protected abstract void executeInternal(org.springframework.statemachine.StateContext<SkipperStateMachineService.SkipperStates,SkipperStateMachineService.SkipperEvents> context)
Action.execute(StateContext). This
execution is wrapped in try/catch and possible error added to an extended
state.context - the contextCopyright © 2023 Pivotal Software, Inc.. All rights reserved.