@kontrag you need to read the docs and the links i posted above about Multi-Instance Sub-processes.
You can split your batch/collection with the mult-instance features. Your process will look something like this:
Review the links i posted, there are step by step code snippets and even more complex examples using the DMN rules engine.
- If I use a MI subprocess, can this expand in different lanes of a pool? Because my tasks that need to be executed in the MI subprocess are performed by different roles.
Camunda (currently, at least as of 7.6) does not use Pools to limit task assignment. So the Pools are a visual aspect, not a executable aspect.
If you want to use a pool and have a large sub-process, then you could use a Call-Activity such as:
This will let you call your Multi-Instance sub-process as a external BPMN file and have all of the features without the visual complexity.