Skip to content


Subversion checkout URL

You can clone with
Download ZIP
.NET state machine written in C# supporting most UML 2 features
Latest commit 6bd26e7 @mesmo mesmo Prep 5.3.0 release
Failed to load latest commit information.
examples Daily update
src Daily update
tests Daily update
.gitignore Bug fix in transactional code Update Dual licence Dual licence Update Prep 5.3.0 release

state.js Logo

Executable finite state machine for .NET.

If you like state.cs, please star it.


State.js provides a hierarchical state machine capable of managing orthogonal regions; a variety of pseudo state kinds are implemented including initial, shallow & deep history, choice, junction and entry & exit points.

State.cs is a C# implementation of a state machine library that largely follows UML 2 state machine semantics. Given the need to make this an executable model, there are certain features that are not supported, please read UML compliance for more information.


The versions are in the form {major}.{minor}.{build}

  • Major changes introduce significant new behaviour and will update the public API.
  • Minor changes introduce features, bug fixes, etc, but note that they also may break the public API.
  • Build changes can introduce features, though usually are fixes and performance enhancements; these will never break the public API.


Documentation for the v5 release is underway...

Please see API documentation for documentation on the v4.x code base.

Building state.cs

Simply add all the .cs files and the resources to an existing or new assembly. That's it...


If you're using state.cs, please drop me a mail; I'd love to hear about how this is getting used...


state.cs is dual licenced under The MIT License (MIT) and GPL v3

Copyright (c) 2014 Steelbreeze Limited

Something went wrong with that request. Please try again.