public abstract class BaseStateAction extends java.lang.Object implements StateAction
StateAction.CleanupJob, StateAction.ConfigureAgent, StateAction.HandleError, StateAction.Initialize, StateAction.LaunchJob, StateAction.MonitorJob, StateAction.ResolveJobSpecification, StateAction.SetUpJob, StateAction.Shutdown
Modifier | Constructor and Description |
---|---|
protected |
BaseStateAction(ExecutionContext executionContext) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Clean up any cruft create by the action once the job has executed (or aborted).
|
void |
execute(org.springframework.statemachine.StateContext<States,Events> context) |
protected abstract void |
executePostActionValidation() |
protected abstract void |
executePreActionValidation() |
protected abstract Events |
executeStateAction(ExecutionContext ctx) |
protected void |
executeStateActionCleanup(ExecutionContext ctx) |
protected BaseStateAction(ExecutionContext executionContext)
public final void execute(org.springframework.statemachine.StateContext<States,Events> context)
public final void cleanup()
cleanup
in interface StateAction
protected abstract void executePreActionValidation()
protected abstract Events executeStateAction(ExecutionContext ctx)
protected abstract void executePostActionValidation()
protected void executeStateActionCleanup(ExecutionContext ctx)