[jboss-dev-forums] [Design of PVM (Process Virtual Machine)] - fork problem in pvm

hardest do-not-reply at jboss.com
Wed Dec 17 03:32:41 EST 2008


hi.I'm a new user of pvm.I wanna define concurrent process like "fork" and "join" in jbpm.But I cannot find "fork" and "join" in pvm and only find "node".So I can only use node to simulate the behavior of fork like this:
ProcessDefinition processDefinition = ProcessFactory.build("sequence")
          .node("one").initial().behaviour(new Parrel("one")).transition("aaa").to("two").transition("bbb").to("three").node("two").behaviour(new WaitState("two")).transition("ccc").to("four").node("three").behaviour(new WaitState("three")).transition("ddd").to("four").node("four").behaviour(new WaitState("four")).done();
    
    Execution execution = processDefinition.startExecution();
    Execution e=execution.createExecution("child");
    Execution e2=execution.createExecution("child2");
    e.signal();
    e2.signal();

But i want the real fork and join like jbpm do.Is there any implemented fork and join in pvm?

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

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



More information about the jboss-dev-forums mailing list