Class RunnableAction
java.lang.Object
org.springframework.statemachine.recipes.support.RunnableAction
-
Constructor Summary
ConstructorsConstructorDescriptionRunnableAction(Runnable runnable) Instantiates a new runnable action.RunnableAction(Runnable runnable, String id) Instantiates a new runnable action. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidexecute(StateContext<String, String> context) Execute action with aStateContext.getId()protected voidprotected voidonPostExecute(String id, StateContext<String, String> context) protected voidonPreExecute(String id, StateContext<String, String> context) protected voidonSuccess(String id, StateContext<String, String> context) protected booleanshouldExecute(String id, StateContext<String, String> context)
-
Constructor Details
-
RunnableAction
Instantiates a new runnable action.- Parameters:
runnable- the runnable
-
RunnableAction
Instantiates a new runnable action.- Parameters:
runnable- the runnableid- the optional id for logging
-
-
Method Details