Spring statemachine example An spring boot example with spring state machine and persist entities. Suppose below HostComponent FSM. if state is changed such as IDEL -> ACTIVATE, then current state is stored at database.