First, Let us create a State class first:
And a Link class:
Then create the interface for the state machine:
- Configuration File for our Workflow (State Machine): Keeps the state information and the transitions between states.
- Spring Expression will be used to define the transition rules between different states.
At the end I am not saying that this a replacement for windows workflow foundation is a very powerful framework but I am only pushing people to think outside of the box.
You can refer to the full source code here and don't forgot that I used Visual Studio 2010 Beta 2. Good Luck!
The initials of my blog are WWWW, isn't this cool? :D ... maybe this will be the next WWW ;).