[jboss-user] [JBoss jBPM] - process-start event in the subprocess doesn't get parent pro

cvl do-not-reply at jboss.com
Thu Feb 12 09:28:48 EST 2009


Hi.

Encountered this problem, looking at the 3.3.0.GA source:

Subprocess instance is created in ProcessState:

ProcessInstance subProcessInstance = superProcessToken.createSubProcessInstance(usedSubProcessDefinition);

At this point of time, the process-start event is fired in the subprocess instance.

And only later, variables are populated from parent process, and token signaled.

...
populate variables
...
subProcessInstance.signal();


Not sure, if you consider this as a flaw, but I personally think, that any event, action or other activity, that happens in process instance, should be worth-full.

In this case, only process-start event in the _subprocess_ instance is exceptional - can't see parent version variables.

cvl

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

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



More information about the jboss-user mailing list