Run multi subprocess simultaneously

1
0
-1

Hi,

i would like how i could manage to create a main process which include different sub-process which can be performed on same time.

i need some to get something like that:

(Start) - - - > [Parallel Gateway] - - - -> (Subprocess 1)
|
|
(Subprocess 2)

Maybe the answer could be: "don't create subprocess if u need to run activities simultaneously)" but there are lot of acitivities in each subprocess and if i don't create subprocess the general diagram will be really complex to read.
subprocess1 and subprocess2 are not strictly related, i mean, subprocess1 can rean also while subprocess 2 is running....
thanks

Comments

Submitted by Sean McP on Sat, 04/08/2017 - 21:24

can you give a bit more information, trying to follow it but not clear for me,

regards

Submitted by claudio.taragnolini on Mon, 04/10/2017 - 09:58

Hi, thanks for your answer. I just need to understand how i could manage inside a parent job, two sub-process in parallel. Something like that: https://www.dropbox.com/s/gsrzdy9x7h0jy0h/process.png?dl=0

1 answer

1
0
-1

okay i managed the point it using a "Send Message" and "Catch Message" event.
That allow me to run in parallel main process and the process that has been "called".

By the way, i am having some strange issue when i try to "copy" the business data variable from the parent job to the job "called" using the message content.

If i don't put any Message content, it works, but when i try to put some message content, it brake my job and in the log i can see "Declared return type class com.company.model.Testchild is not compatible with evaluated type class java.lang.String for expression value1 at org.bonitasoft.engine.execution.ProcessExecutorImpl.start(ProcessExecutorImpl.java:806)

Do u have any example about it?

That following what i did: https://www.dropbox.com/s/vbzrug2mfoueays/catch%20and%20throw%20message....

Notifications