top | item 34340949

(no title)

cproctor | 3 years ago

I've found it helpful in several projects to implement the "services layer" described here as a state machine, modeling state transitions for a central object (e.g. an article can be drafted, submitted, reviewed, published). The state machine enforces permissible transitions and handles side effects which touch other models.

discuss

order

No comments yet.