demo-process-models/potentially-promote-to-exam.../example-decision/decision_example.bpmn

59 lines
3.1 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:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
<bpmn:process id="Process_5bmdbcp" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_0brrubl</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_0brrubl" sourceRef="StartEvent_1" targetRef="Activity_17q59fj" />
<bpmn:endEvent id="Event_1fw7s4u">
<bpmn:incoming>Flow_15vr3a8</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_15vr3a8" sourceRef="Activity_06jvah6" targetRef="Event_1fw7s4u" />
<bpmn:businessRuleTask id="Activity_06jvah6" name="Make decision">
<bpmn:extensionElements>
<spiffworkflow:calledDecisionId>decision_abc</spiffworkflow:calledDecisionId>
<spiffworkflow:preScript />
</bpmn:extensionElements>
<bpmn:incoming>Flow_0dyelew</bpmn:incoming>
<bpmn:outgoing>Flow_15vr3a8</bpmn:outgoing>
</bpmn:businessRuleTask>
<bpmn:sequenceFlow id="Flow_0dyelew" sourceRef="Activity_17q59fj" targetRef="Activity_06jvah6" />
<bpmn:scriptTask id="Activity_17q59fj" name="set vars">
<bpmn:incoming>Flow_0brrubl</bpmn:incoming>
<bpmn:outgoing>Flow_0dyelew</bpmn:outgoing>
<bpmn:script>x = 1
is_lower_case = True</bpmn:script>
</bpmn:scriptTask>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_5bmdbcp">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="32" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1fw7s4u_di" bpmnElement="Event_1fw7s4u">
<dc:Bounds x="432" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0bkq2p2_di" bpmnElement="Activity_06jvah6">
<dc:Bounds x="270" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1rxu6zq_di" bpmnElement="Activity_17q59fj">
<dc:Bounds x="110" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0brrubl_di" bpmnElement="Flow_0brrubl">
<di:waypoint x="68" y="177" />
<di:waypoint x="110" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_15vr3a8_di" bpmnElement="Flow_15vr3a8">
<di:waypoint x="370" y="177" />
<di:waypoint x="432" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0dyelew_di" bpmnElement="Flow_0dyelew">
<di:waypoint x="210" y="177" />
<di:waypoint x="270" y="177" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>