Skip to content
Go to file


Spring Statemachine

Master is now in a development of a 3.x which may be extremely unstable. Current stable release branch is 2.1.x. Unless you are not planning to contribute to initial reactive stories, PR’s and issues should target towards 2.1.x branch.

spring statemachine

Bamboo Build Status (master) Bamboo Build Status (2.1.x) Bamboo Build Status (2.0.x) Bamboo Build Status (1.2.x) Bamboo Build Status (1.1.x)

The Spring Statemachine project aims to provide a common infrastructure to work with state machine concepts in Spring applications.

It is advised to check the actual state of this project by referring to the latest releases found on Spring Statemachine Project Page. The git repo master branch may be relatively unstable when new features are added into the source code.

Code of Conduct

This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to

Downloading Artifacts

See downloading Spring artifacts for Maven repository information.


The Spring Statemachine Project Page contains links to currently available JavaDoc and Reference Documentation for particular releases and versions.


Samples can be found under spring-statemachine-samples. Check the reference documentation more about what those do.

Building from Source

Spring Statemachine uses a Gradle-based build system. In the instructions below, ./gradlew is invoked from the root of the source tree and serves as a cross-platform, self-contained bootstrap mechanism for the build.


Git and the JDK8 build.

Be sure that your JAVA_HOME environment variable points to the jdk folder extracted from the JDK download. While build requires JDK8, created artifacts are JDK7 compatible.

Check out sources

git clone

Install all spring-\* jars into your local Maven cache

./gradlew install

Compile and test; build all jars, distribution zips, and docs

./gradlew build

Discover more commands with ./gradlew tasks. See also the Gradle build and release FAQ.


Pull requests are welcome; see the contributor guidelines for details.

If you want to contribute, search github tickets marked with help wanted or come up with your own ticket but please first open a ticket to discuss in order to avoid duplicate work on a topic or issue. Nobody wants to see the same work done twice!


Spring Statemachine is Open Source software released under the Apache 2.0 license.

You can’t perform that action at this time.