oop - design workflow/flowchart representation in python? -


In my web application, I have magicians with many next button and options (type of flow chart with events and options) The wizard does not run at once, but can wait for the external event, the user can come to the wizard later or next day. Currently I'm manually writing code (hard coded) for each state of a wizard (or a flow chart) and running through it

Now, as soon as the number of wizards increases, I would like to make it more object-oriented so that it can be easier to write new states and magicians.

How can I design my classes for different states and magicians?

I am using Python programming language, so if there is reference implementation in Python then it will be cool to see.

It seems that you want (AK "FSM") - If so, check out.


Comments