[jboss-dev-forums] [Design of PVM (Process Virtual Machine)] - Composite execution problem

beeke do-not-reply at jboss.com
Wed Apr 15 23:38:14 EDT 2009


hello,


  | public void testSequence(){
  |         ClientProcessDefinition processDefinition = ProcessDefinitionBuilder
  |         .startProcess("propagate")
  |             .startActivity("sequence", new Sequence())
  |                 .initial().needsPrevious().transition("end")
  |                 .startActivity("one", new WaitState())
  |                 .endActivity()
  |                 .startActivity("two", new WaitState())
  |                 .endActivity()
  |                 .startActivity("three", new WaitState())
  |                 .endActivity()
  |             .endActivity()
  |             .startActivity("end", new WaitState())
  |             .endActivity()
  |         .endProcess();
  | 
  |         ClientExecution execution = processDefinition.startProcessInstance();
  |         execution.signal();
  |         execution.signal();
  |         execution.signal();
  | }
  | 

Notice the line:.initial().needsPrevious().transition("end")
I want it execute like this:
(sequence(one -> two -> three)) -> end
In fact is sequence->end

I saw the source code, while activityImpl.createOutgoingTransition, the activity "end" is set to be a defaultTransition: defaultTransition = transition;

While executionImpl.proceed(), the "sequence" activity has defaultActivity, and will never executed as a block structed node.

How can PVM support block structed like this?
http://docs.jboss.org/jbpm/pvm/manual/html_single/images/ch02.transition.inheritence.png



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

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



More information about the jboss-dev-forums mailing list