25. Persist

Persist recipe is a simple utility which allows to use a single state machine instance to persist and update a state of an arbitrary item in a repository.

Recipe’s main class is PersistStateMachineHandler which assumes user to do three different things:

There is a sample demonstrating usage of this recipe at Chapter 32, Persist.