4 ms·
Have you looked at django-fsm for managing your state transitions? Overkill for small projects - invaluable for larger ones where state changes can be literally
by jsmeaton 6y ago
Have you looked at django-fsm for managing your state transitions? Overkill for small projects - invaluable for larger ones where state changes can be literally anywhere.
- simplecto 6y agoI had not seen that. Is it fair to say it is something similar to a Rules Engine like Drools?
- jsmeaton 6y agoNot really. It just enforces that specific properties (status field) can only be manipulated with methods decorated by an FSM transition. Allows enforcement of what actions are taken during a state transition so that some random view doesn’t change to “in progress” without the necessary actions occurring. https://pypi.org/project/django-viewflow/ https://pypi.org/project/django-viewflow/ Is from the same developer which is a workflow/rules engine built on top of FSM.