cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel gateway don't work in parallel ?

jean-sébastien
Champ in-the-making
Champ in-the-making
Hello,

I have built a simple example [img]http://forums.activiti.org/en/download/file.php?mode=view&id=172&sid=01308927e038fa88780482dce949e6f...[/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
1 REPLY 1