Class RunnableAction
java.lang.Object
org.springframework.statemachine.recipes.support.RunnableAction
-
Constructor Summary
ConstructorDescriptionRunnableAction
(Runnable runnable) Instantiates a new runnable action.RunnableAction
(Runnable runnable, String id) Instantiates a new runnable action. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
execute
(StateContext<String, String> context) Execute action with aStateContext
.getId()
protected void
protected void
onPostExecute
(String id, StateContext<String, String> context) protected void
onPreExecute
(String id, StateContext<String, String> context) protected void
onSuccess
(String id, StateContext<String, String> context) protected boolean
shouldExecute
(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