Spring Statemachine - Reference Documentation

Authors

Janne Valkealahti

1.0.0.M2

Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically.


Table of Contents

Preface
I. Introduction
1. Requirements
2. Background
3. Usage Scenarios
II. Spring and Statemachine
4. Statemachine Configuration
4.1. Configuring States
4.2. Configuring Hierarchical States
4.3. Configuring Regions
4.4. Configuring Transitions
4.5. Configuring Guards
4.6. Configuring Actions
4.7. Configuring Pseudo States
4.7.1. Initial State
4.7.2. Terminate State
4.7.3. History State
4.7.4. Choice State
4.7.5. Fork State
4.7.6. Join State
5. State Machine Factories
5.1. Factory Limitations
6. Using Actions
6.1. SpEL Expressions with Actions
7. Using Guards
7.1. SpEL Expressions with Guards
8. Using StateContext
9. Triggering Transitions
9.1. EventTrigger
9.2. TimerTrigger
10. Listening State Machine Events
10.1. Application Context Events
10.2. State Machine Listener
10.3. Limitations and Problems
11. Context Integration
11.1. Annotation Support
III. State Machine Examples
12. Turnstile
13. Showcase
14. CD Player
15. Tasks
16. Washer
IV. FAQ
17. State Changes
18. Extented State
V. Appendices
A. Support Content
A.1. Classes Used in This Document
B. State Machine Concepts
B.1. Quick Example
B.2. Glossary
B.3. A State Machines Crash Course
B.3.1. States
B.3.2. Pseudo States
Initial
End
Choice
History
Fork
Join
B.3.3. Guard Conditions
B.3.4. Events
B.3.5. Transitions
Internal Transition
External vs. Local Transition
B.3.6. Actions
B.3.7. Hierarchical State Machines
B.3.8. Regions