[jboss-dev-forums] [Design of JBoss jBPM] - Re: introducing process instance ?

tom.baeyens@jboss.com do-not-reply at jboss.com
Thu Apr 16 05:54:28 EDT 2009


"jbarrez" wrote : But I don't agree that the ProcessInstance should be an interface.
  | Why not make it an extension of the ExecutionImpl? After all, the ProcessInstance is just another name of a very specific execution (ie the root execution). You could add some specifc stuff to the process instance (eg business key? as it was in jbpm3 or getAllWaitStates())
  | 

the ProcessInstance interface that I propose is in the api.  

i can't make the same distinction in the implementation classes.  but the api user will not notice that.

suppose that we have 

class ProcessInstanceImpl extends ExecutionImpl {
  | ...
  | }

in the implementation.  And then suppose that jPDL wants to add a property to all executions...  then you end up in multiple inheritence.

and besides, i think it is best that all executions (incl process instances) are stored in only 1 single table.


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

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



More information about the jboss-dev-forums mailing list