views:

85

answers:

2

I have a model that represents a registration process, which needs to track the progression of several processes (background checks, interviews, information collection...). Each one can be represented by a state machine, and then the overall state of the registration might depend on the state of the others.

Can aasm handle this? Any other ideas or design considerations?

+3  A: 

Try this plugin, which you can use to even inherit from other state machines:

http://api.pluginaweek.org/state_machine/

Josh
A: 

If you need multiple statemachines in one model it's probably getting to big and it's time to split the model. So in your example you should add models for background checks, interviews, information collection...

there are multiple models for all these things, and it's the overall process that needs the sate modeling
DGM