cancel
Showing results for 
Search instead for 
Did you mean: 

Many to one process instance relationship

abentan
Champ in-the-making
Champ in-the-making
Hi, I'm a newcomer to Activiti and to BPMN 2.0. This is my problem:



(Start)  ->  (Process Claim)  ->  (Process Internal Corrective Action)  -> (End)
                     ^                                   ^
                 (multi without limit)                 (one)


There are many instances of Process Claim, (independent activiti) and many instances of Process Internal Corrective Action (another independent activiti). Many Process Claim instances, can be associated with one Process Internal Corrective Action. It's a relation many-to-one. Even a new Process Claim instance, can be associated to one Process Internal Corrective Action already started. Then the BMPN model to use is not a Call Activity, to the new process.
What would be the best way to do this association?
I'm using a simple instance ID now, but, then I can't continue processing the Claim. Is there something similar to Call Activity, but, instead of it creates a new instance, it only refers an already created process instance?
Multi-instance is not an option either, since I don't know how many Claim instances will be created at a time.
Thanks.
Alejandro.
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
> Multi-instance is not an option either, since I don't know how many Claim instances will be created at a time.

If you don't know that, then it is really hard to express it in the a BPMN process.

What you actually want it seems, is just a container around those processes, that you ca easily implement yourself. I would not use a process for that.