cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced Workflow - subprocess

irenailievska1
Champ in-the-making
Champ in-the-making
I have a process I need to model using Activiti. The thing is I need to use subprocess, and all the posts I have found are not explaining it to me enough so I can understand it. In the subprocess I need to have something similar to submit and review workflow.
The assignees are supposed to be picked dynamicly (the current user picks the next one - this I have figured out), but don't know how to get properties from the subprocess to the main process (for example  - I need to check if the process was approved. If not then the subprocess needs to happen again).
I also saw that there is something called loop and maybe it is the best if I implement it in this case, BIG problem - don't know how.
Any kind of help is welcomed.

This is how the process will look like - the subprocess is empty since I have no idea how to design it.
https://www.dropbox.com/s/z5148x6gmydv2v1/design.PNG?dl=0

Thanks,
Irena
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
An embedded subprocess (the one you are using here), shares all process variables with the process instance it is called from.
You simply set variables as you would set them normally, and they will be stored in the process instance. You can then use them on the sequence flow conditions that start from the exclusive gateway.

But I need to have the same subprocess on the both places. Can I somehow create it in one place and call it from there? I found some references about some Call Activity, I was unable to successfully deploy the process.
If I do create the workflow like it is shown on the image inside there has to be a start event and an end event.
What does the start event of the subprocess mean for the main start event?