Multi-instance pool

I wanted to add a multi-instance pool (3 vertical lines in parallel), but couldn’t find the option. I checked and found a previous post asking the same question (https://forum.camunda.org/t/define-multi-instance-pool/4045). Just wondering whether the feature has been developed or not.

Lin

1 Like

Hi @Lin
You need like this picture?
image

Please share what’s your mind to get best answer.

Below is the shape I wanted to create:

image.png

A process may involve the participation of multi-instances of a third party. For example, seeking evidence from multiple witnesses is required before lodging an insurance claim. Using the multi-instance pool would capture the scenario.

Our tool can display participant multiplicity but you cannot model it.

You can open this diagram for example:

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.3.5">
  <bpmn:collaboration id="Collaboration_1">
    <bpmn:participant id="Participant_1" processRef="Process_1">
      <bpmn:participantMultiplicity minimum="1" maximum="10" />
    </bpmn:participant>
  </bpmn:collaboration>
  <bpmn:process id="Process_1" isExecutable="true" />
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1">
      <bpmndi:BPMNShape id="Participant_1_di" bpmnElement="Participant_1" isHorizontal="true">
        <dc:Bounds x="100" y="100" width="500" height="200" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>

Is it somehow possible to create it programmatically? To create a participantMultiplicity element and add it to a Participant’s businessObject or sth lke that? So an ordinary participant would be converted…

Yes, that’s possible. What’s missing is merely the UI controls to do it through the modeler.

Could you provide a description or a code example how it could be done?

Here you go: https://codesandbox.io/embed/bpmn-js-participant-multiplicity-e3lse

Sorry to bother you with this. I saw the shape in the code sandbox, but couldn’t create a similar shape using the web site demo.bpmn.io/new

As mentioned above, it’s only possible to create it programmatically, not via our UI tools.

Works great, thanks! Implemented a functionality to turn pools into multi-instance-pools and vice versa.

How to do that? I tried, but the only selection for pools is to change it to a collapsed pool and vice versa.

As we’ve said multiple times it is not possible through the context pad yet.