Part VI. State Machine Examples

This part of the reference documentation explains the use of state machines together with a sample code and a uml state charts. We do few shortcuts when representing relationship between a state chart, SSM configuration and what an application does with a state machine. For complete examples go and study the samples repository.

Samples are build directly from a main source distribution during a normal build cycle. Samples in this chapter are:

Chapter 36, Turnstile Turnstile.

Chapter 37, Showcase Showcase.

Chapter 38, CD Player CD Player.

Chapter 39, Tasks Tasks.

Chapter 40, Washer Washer.

Chapter 41, Persist Persist.

Chapter 42, Zookeeper Zookeeper.

Chapter 43, Web Web.

Chapter 44, Scope Scope.

Chapter 45, Security Security.

Chapter 46, Event Service Event Service.

Chapter 47, Deploy Deploy.

Chapter 48, Order Shipping Order Shipping.

Chapter 49, JPA Config JPA Config.

Chapter 50, JPA Persist JPA Persist.

Chapter 51, Monitoring Monitoring.

./gradlew clean build -x test

Every sample is located in its own directory under spring-statemachine-samples. Samples are based on spring-boot and spring-shell and you will find usual boot fat jars under every sample projects build/libs directory.

[Note]Note

Filenames for jars we refer in this section are populated during a build of this document, meaning if you’re building samples from a master, you have files with BUILD-SNAPSHOT postfix.