Take the 2-minute tour ×

I am a beginner in workflow.

I was trying the database design for workflow to be saved? but did not got anything on those lines...

Let me know if anybody can help me out!!

share|improve this question
add comment

1 Answer

You might want to look at implementing some kind of finite state machine


whereby you define a set of permissible stati, and assign a status to your entities in the database. So you would need something like:

  1. a table defining all stati
  2. workflows made up of (a subset) of stati
  3. a table mapping legitimate changes of state

The advantage with a FSM is that you only persist the discrete states and don't have the overhead of polling agents or processes that keep track of any "flow": the flow is derived from the states at any given point in time.

share|improve this answer
add comment

Your Answer


