Modeling call activity for a use case

Hi,

I have another question. I expect the process to finish if I complete one sub-process. Let’s say, I created 3 subprocesses only one time and completed it without requesting more items. The completion condition works fine and completes the sub-process.
${nrOfCompletedInstances/nrOfInstances >= 0.3}

But if I add 3 more items, then I get duplicate nrOfInstances and nrOfCompletedInstances variables on the parent process. So the below condition doesn’t work for me.

${nrOfCompletedInstances/nrOfInstances >= 0.01}

All 6 subprocesses have the same superProcessInstanceId. I expect 6 of them to complete but only 3 of them get completed and the parent process keeps waiting.

Any idea about how to overcome this scenario? Do I need to manually delete other subprocesses if I complete one? @aravindhrs