Scope is a state machine example using a session scope to provide individual instance for every user.
This is a simple state machine having states S0
, S1
and S2
.
Transitions between those are controlled via events A
, B
and C
as shown in a state chart.
@n1:~# java -jar spring-statemachine-samples-scope-1.2.9.RELEASE.jar
When instance is running you can open a browser and play with a state machine. If you open same page using a different browser, i.e one in Chrome and one in Firefox, you should get a new state machine instance per user session.