cancel
Showing results for 
Search instead for 
Did you mean: 

How to do Parallel Processing for List<T> using Acitiviti

jayavardhan
Champ in-the-making
Champ in-the-making
Dears,

I'm having a requirement like i need to generate threads for a list of Objects for parallel processing.
I went through JobExecutior.It's accepting only Strings not Generic Objects.
I want to create parallel threads for a list then i need to use parallel gate way for each of the Object in the list.

Could you suggest me how i can do that using Activiti with Spring

Regards
jai
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Try combining the BPMN2.0 multi-instance feature with the activiti:async (possibly within a Multi-instance subprocess)…

However, be aware of the multi-threading behavior and optimistic locking when it comes to concurrent process-state updates (http://activiti.org/userguide/index.html#bpmnConcurrencyAndTransactions)