The project contains an extendable StateMachine that defines a few simple states and two conditions ("Continue", "Cancel") that can be used to advance (transition) through that state machine.
When instatiating the StateMachine with the default constructor the following states, conditions and transitions will be set up per default
|Source state||Condition||Target state|
Continuecondition makes a transition from an arbitrary state to the next state as the "good case"
Cancelcondition makes a transition from an arbitrary state to the next state as the "bad case"
- Furthermore there is the
GetNextmethod to transit to the next state based on a given condition.
There are as well methods for exporting and importing the configuration along with the states:
SetupStateMachine(String configuration, String currentState = null, String previousState = null)
- adjust namespace
- States and Conditions can now be retrieved by consumer
- added code contracts pre-conditions
- enabled CodeContracts assemlby
Built and released with TeamCity