I'm new to AOP so bear with me. Consider the following scenario:
A state machine is used in a workflow engine, and after the state of the application is changed, a series of commands are executed. Depending on the state, different types of commands should be executed.
As I see it, one implementation is to create List<IAction>
and have each individual action determine whether it should execute.
Would a Aspect Oriented process work as well? That is, could you create an aspect that notifies a class when a property changes, and execute the appropriate processes from that class? Would this help centralize the state specific rules?