AnsweredAssumed Answered

Parallel gateway don't work in parallel ?

Question asked by jean-sébastien on Mar 28, 2011
Latest reply on Mar 28, 2011 by ronald.van.kuijk
Hello,

I have built a simple example [img]http://forums.activiti.org/en/download/file.php?mode=view&id=172&sid=01308927e038fa88780482dce949e6fd[/img]

The service task implementation is the following :


package com.test;

import java.util.concurrent.TimeUnit;

public class EssaiClass implements org.activiti.engine.delegate.JavaDelegate {

   @Override
   public void execute(DelegateExecution arg0) throws Exception {
      System.out.println("Hello");
      TimeUnit.SECONDS.sleep(6);
   }
}

When I run the sample, I see the two "Hello" strings, one after another and with a 6 secs delay.
I would have expected to see them almost at the same time.
Is my understanding correct ?

Many thanks,

Jean-Sébastien Scrève

Outcomes