State

Posted on Code Project See other posts from Code Project
Published on Sat, 06 Feb 2010 23:52:00 GMT Indexed on 2010/06/10 0:03 UTC
Read the original article Hit count: 211

Filed under:
Imagine that you need to develop application for shipping Orders. Your Orders could be in few states: New Order, Registered, Granted, Shipped, Invoiced, Cancelled. And there are some rules which allow your Order to migrate to another state. How to encapsulate states and rules logic? - STATE

© Code Project or respective owner