bpmn-js-spiffworkflow/test/spec/bpmn/gateway.bpmn

111 lines
5.7 KiB
XML

<?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:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1qnx3d3" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.0.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.17.0">
<bpmn:process id="test_gateway_expression" name="Test Gateway ExpressionPath" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_0ik6wwl</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_0ik6wwl" sourceRef="StartEvent_1" targetRef="set_var" />
<bpmn:sequenceFlow id="Flow_0l0l3ie" sourceRef="set_var" targetRef="choose_path" />
<bpmn:scriptTask id="set_var" name="Set Var">
<bpmn:incoming>Flow_0ik6wwl</bpmn:incoming>
<bpmn:outgoing>Flow_0l0l3ie</bpmn:outgoing>
<bpmn:script>the_var = 1</bpmn:script>
</bpmn:scriptTask>
<bpmn:scriptTask id="set_result_var_top" name="Set Result Var Top">
<bpmn:incoming>top_flow</bpmn:incoming>
<bpmn:outgoing>Flow_13gkhe0</bpmn:outgoing>
<bpmn:script>result_var = "TOP"</bpmn:script>
</bpmn:scriptTask>
<bpmn:scriptTask id="set_result_var_bottom" name="Set Result Var Bottom">
<bpmn:incoming>bottom_flow</bpmn:incoming>
<bpmn:outgoing>Flow_1u2cwim</bpmn:outgoing>
<bpmn:script>result_var = "BOTTOM"</bpmn:script>
</bpmn:scriptTask>
<bpmn:endEvent id="top_end" name="Top End">
<bpmn:incoming>Flow_13gkhe0</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_13gkhe0" sourceRef="set_result_var_top" targetRef="top_end" />
<bpmn:endEvent id="bottom_end" name="Bottom End">
<bpmn:incoming>Flow_1u2cwim</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1u2cwim" sourceRef="set_result_var_bottom" targetRef="bottom_end" />
<bpmn:exclusiveGateway id="choose_path" name="Choose Path">
<bpmn:incoming>Flow_0l0l3ie</bpmn:incoming>
<bpmn:outgoing>bottom_flow</bpmn:outgoing>
<bpmn:outgoing>top_flow</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="bottom_flow" name="Bottom Flow" sourceRef="choose_path" targetRef="set_result_var_bottom" />
<bpmn:sequenceFlow id="top_flow" name="Top Flow" sourceRef="choose_path" targetRef="set_result_var_top">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">the_var == 1</bpmn:conditionExpression>
</bpmn:sequenceFlow>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="test_gateway_expression">
<bpmndi:BPMNEdge id="Flow_0ik6wwl_di" bpmnElement="Flow_0ik6wwl">
<di:waypoint x="215" y="190" />
<di:waypoint x="270" y="190" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0l0l3ie_di" bpmnElement="Flow_0l0l3ie">
<di:waypoint x="370" y="190" />
<di:waypoint x="425" y="190" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_13gkhe0_di" bpmnElement="Flow_13gkhe0">
<di:waypoint x="630" y="110" />
<di:waypoint x="692" y="110" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1u2cwim_di" bpmnElement="Flow_1u2cwim">
<di:waypoint x="630" y="250" />
<di:waypoint x="692" y="250" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_15p61p3_di" bpmnElement="bottom_flow">
<di:waypoint x="450" y="215" />
<di:waypoint x="450" y="250" />
<di:waypoint x="530" y="250" />
<bpmndi:BPMNLabel>
<dc:Bounds x="435" y="230" width="62" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_14md7ua_di" bpmnElement="top_flow">
<di:waypoint x="450" y="165" />
<di:waypoint x="450" y="110" />
<di:waypoint x="530" y="110" />
<bpmndi:BPMNLabel>
<dc:Bounds x="443" y="135" width="45" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="179" y="172" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0knhsfp_di" bpmnElement="set_var">
<dc:Bounds x="270" y="150" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0b5ya8m_di" bpmnElement="set_result_var_top">
<dc:Bounds x="530" y="70" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_157isb4_di" bpmnElement="set_result_var_bottom">
<dc:Bounds x="530" y="210" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1vplzst_di" bpmnElement="top_end">
<dc:Bounds x="692" y="92" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="690" y="135" width="41" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0hcyrv2_di" bpmnElement="bottom_end">
<dc:Bounds x="692" y="232" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="682" y="275" width="58" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1d6xh77_di" bpmnElement="choose_path" isMarkerVisible="true">
<dc:Bounds x="425" y="165" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="498" y="180" width="64" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>