[jboss-user] [JBoss jBPM] - Re: State machine

sanne do-not-reply at jboss.com
Tue Feb 6 08:28:53 EST 2007


Hi Koen,

Thanks for your reply. The question was meant to be rhetorical!

No serious. A workflow is about process state. A state machine in its minimalist form is an object state. The state of the object is changed according to the type of event that occurs. Say the object is in state s1. On event e2 the object switches to s2, on e3 the object switches to s3, on e4 nothing happens, because this is not allowed. 

Let me give an example. Say someone wants to update an order. This proces can involve a workflow: after the update of the order maybe financial approval needs to be asked.  After an selectForUpdate request the invoice switches to the state selectForUpdate. No other event is allowed except the update event. If someone wants to ship the order: nope! Not now. 

One could model the invoice state in the invoice object: but  it doesn't really belong there.

Managing object state and process state is different. Both are required in order to implement a robust services system. For as far as I could see JBpm is not intended to manage object state.

Rgrds,

Sanne


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4011889#4011889

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4011889



More information about the jboss-user mailing list