Creating a dynamic state machine with C# and NHibernate, Part 2: Adding business rules.

This the second part of a series started in an earlier post; Creating a dynamic state machine with C# and NHibernate  In my first post I showed you how to create a state machine, attach it to an entity and Continue reading

Posted in Architecture, ORM | Tagged NHibernate, Open - closed principle, State Machine, Strategy Pattern | 12 Replies

Creating a dynamic state machine with C# and NHibernate

In my last post (An architecture dilemma: Workflow Foundation or a hand rolled state machine?) I talked about the discussion around an architectural choice. The conclusion of that discussion was to hand-roll a dynamic state machine. This post is the Continue reading

Posted in Architecture, Code Design | Tagged design patterns, many-to-many, NHibernate, State Machine | 5 Replies

An architecture dilemma: Workflow Foundation or a hand rolled state machine?

Workflow Foundation is an interesting piece of technology, in a recent architectural decision for a project I had time to examine the pro’s and con’s of WF for a particular challenge. This sprint a story came up that will give Continue reading

Posted in Architecture, Methodology | Tagged Architecture, State Machine, Strategy Pattern, Workflow Foundation | 5 Replies