cancel
Showing results for 
Search instead for 
Did you mean: 

Asyncronous and Sequential Process Execution

soumyaditya_07
Champ in-the-making
Champ in-the-making
Hi All

I am new to Activiti , I have a requirement

I have 8 java controllers, I have to execute the first 6 controllers that have to execute sequentially and the last two has to execute parallel.

Can I achive this task using Activiti .
If I can then how to do it can any one post any examples or any references.

Thanks in advance.
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Use parallel gateway to split execution into two parallel paths. (examples: download activiti source and find jUnit test for parallel gateway)
The problem is that these two paths won't be executed in parallel in fact, but they will be executed sequentially in one java thread.
To have real concurrency in activity 5 you have to make parallel tasks asynchronous and let job executor to run the task in separate java threads.

Regards
Martin