Skip to content

Instantly share code, notes, and snippets.

@berndruecker
Created October 10, 2022 15:18
Show Gist options
  • Save berndruecker/7a40738c43de5886b42c910cc91fd866 to your computer and use it in GitHub Desktop.
Save berndruecker/7a40738c43de5886b42c910cc91fd866 to your computer and use it in GitHub Desktop.
Process model calling DMN decision in a MI
<?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" xmlns:zeebe="http://camunda.org/schema/zeebe/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_0szphh0" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.3.0" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.0.0">
<bpmn:process id="benchmark-dmn" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_1kedjft</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1kedjft" sourceRef="StartEvent_1" targetRef="Activity_0kgk5zd" />
<bpmn:endEvent id="Event_1hr99hk">
<bpmn:incoming>Flow_147jeh7</bpmn:incoming>
</bpmn:endEvent>
<bpmn:serviceTask id="task10" name="Process Instance Completion Marker">
<bpmn:extensionElements>
<zeebe:taskDefinition type="= &#34;benchmark-task-&#34; + benchmark_starter_id + &#34;-completed&#34;" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_0g8g71v</bpmn:incoming>
<bpmn:outgoing>Flow_147jeh7</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_147jeh7" sourceRef="task10" targetRef="Event_1hr99hk" />
<bpmn:businessRuleTask id="Activity_0kgk5zd" name="Subprocess with DMN and Worker">
<bpmn:extensionElements>
<zeebe:calledDecision decisionId="benchmark-decision" resultVariable="decisionResult" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_1kedjft</bpmn:incoming>
<bpmn:outgoing>Flow_0g8g71v</bpmn:outgoing>
<bpmn:multiInstanceLoopCharacteristics>
<bpmn:extensionElements>
<zeebe:loopCharacteristics inputCollection="=list" inputElement="listItem" outputCollection="results" outputElement="=decisionResult" />
</bpmn:extensionElements>
</bpmn:multiInstanceLoopCharacteristics>
</bpmn:businessRuleTask>
<bpmn:sequenceFlow id="Flow_0g8g71v" sourceRef="Activity_0kgk5zd" targetRef="task10" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="benchmark-dmn">
<bpmndi:BPMNShape id="Activity_00ybd56_di" bpmnElement="Activity_0kgk5zd">
<dc:Bounds x="234" y="110" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="ServiceTask_0iryuae_di" bpmnElement="task10">
<dc:Bounds x="380" y="110" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="152" y="132" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1hr99hk_di" bpmnElement="Event_1hr99hk">
<dc:Bounds x="512" y="132" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1kedjft_di" bpmnElement="Flow_1kedjft">
<di:waypoint x="188" y="150" />
<di:waypoint x="234" y="150" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0g8g71v_di" bpmnElement="Flow_0g8g71v">
<di:waypoint x="334" y="150" />
<di:waypoint x="380" y="150" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_147jeh7_di" bpmnElement="Flow_147jeh7">
<di:waypoint x="480" y="150" />
<di:waypoint x="512" y="150" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment