cancel
Showing results for 
Search instead for 
Did you mean: 

parallel instantiation of workflow depending on the DB count

nirvana
Champ in-the-making
Champ in-the-making
Hi All,

Attached the workflow.

I'm able to instantiate the workflows parallelly depending in regards with some X count from DB.

If the count is more than 22 then am getting stack overflow error.
In my case, I have a requirement of handling more than 50000 in one go….

16 REPLIES 16

nirvana
Champ in-the-making
Champ in-the-making
what is difference between using sub-process and call-activiti ?
when using the sub-process I just see the same instance created 'n' number of times.
when using call-activiti i see the 'n' different instances.

Can't we achieve the same with sub-process ?

Thanks in advance.

Regards,
Nirvana

frederikherema1
Star Contributor
Star Contributor
Call-activiti wil start a separate process-instance, based on the processDefinition referenced in the calledElement. A sub-process will run inside the process-instance and will execute the activities inside the sub-process. So a call-activity can execute external processDefinition (versioned differently, will always start the latest version of the key in "calledElement"), while a subprocess' activities are always the same version as the main process-definition.

Also, a subprocess has access to the process-instance scope (variables), while a call-activity only "sees" the variables declared in activiti:in, and can only write variables delacred in "activitiSmiley Surprisedut".

nirvana
Champ in-the-making
Champ in-the-making
Thanks Frederik Heremans.

I tried multi instance, asyn, etc. but I can't instantiate more than 30K.
Even tried splitting up the process with call-activiti calling another call-activiti being both multi instances… for trying X * Y combinations for the call-activities…….
Any more suggestions ?

Regards,
Nirvana

jbarrez
Star Contributor
Star Contributor
Did you already try to make some steps async as mentioned above

nirvana
Champ in-the-making
Champ in-the-making
Yes joram.

Tried following
1. Async
2. splitting the process.
3. dividing the Multi instance  process for 5000 instances.
4. Running the process through standalone mode, and activiti-explorer just for displaying the tasks.

no luck what so ever…………


Regards,
Nirvana

jbarrez
Star Contributor
Star Contributor
Okay, can you put the process xml somewhere so we can verify?
The xml please as simple as possible, while still demonstrating the problem.

nirvana
Champ in-the-making
Champ in-the-making
Hi Jorram,

Thanks for the reply.

attached 3 process xml's in txt format.

Regards,
Nirvana