mirror of
https://github.com/sartography/sample-process-models.git
synced 2025-02-25 14:15:14 +00:00
113 lines
5.9 KiB
XML
113 lines
5.9 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:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
|
|
<bpmn:process id="Exclusive_Gateway_Process" name="Exclusive Gateway Process" isExecutable="true">
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
<bpmn:outgoing>Flow_0vnkhc5</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_0vnkhc5" sourceRef="StartEvent_1" targetRef="User_Task" />
|
|
<bpmn:exclusiveGateway id="Gateway_04kw2o4" name="Exclusive Gateway">
|
|
<bpmn:incoming>Flow_1vfbldw</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0ejbl6k</bpmn:outgoing>
|
|
<bpmn:outgoing>Flow_1hua65s</bpmn:outgoing>
|
|
</bpmn:exclusiveGateway>
|
|
<bpmn:sequenceFlow id="Flow_1vfbldw" sourceRef="User_Task" targetRef="Gateway_04kw2o4" />
|
|
<bpmn:endEvent id="Event_0767czo">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:instructionsForEndUser>End Exclusive Gateway Unit Test. You are an Adult.</spiffworkflow:instructionsForEndUser>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_03q9vbw</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="Flow_0ejbl6k" sourceRef="Gateway_04kw2o4" targetRef="Activity_0037bsk">
|
|
<bpmn:conditionExpression>age > 21</bpmn:conditionExpression>
|
|
</bpmn:sequenceFlow>
|
|
<bpmn:endEvent id="Event_08nh8ex">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:instructionsForEndUser>End Exclusive Gateway Unit Test. You are a Kid.</spiffworkflow:instructionsForEndUser>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_02hom7j</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="Flow_1hua65s" sourceRef="Gateway_04kw2o4" targetRef="Activity_1tgpm05">
|
|
<bpmn:conditionExpression>age < 13</bpmn:conditionExpression>
|
|
</bpmn:sequenceFlow>
|
|
<bpmn:sequenceFlow id="Flow_02hom7j" sourceRef="Activity_1tgpm05" targetRef="Event_08nh8ex" />
|
|
<bpmn:sequenceFlow id="Flow_03q9vbw" sourceRef="Activity_0037bsk" targetRef="Event_0767czo" />
|
|
<bpmn:scriptTask id="Activity_0037bsk" name="Adult">
|
|
<bpmn:incoming>Flow_0ejbl6k</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_03q9vbw</bpmn:outgoing>
|
|
<bpmn:script>you_are = "An Adult"</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
<bpmn:scriptTask id="Activity_1tgpm05" name="Kid">
|
|
<bpmn:incoming>Flow_1hua65s</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_02hom7j</bpmn:outgoing>
|
|
<bpmn:script>you_are = "A Kid"</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
<bpmn:userTask id="User_Task" name="User Task">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:instructionsForEndUser />
|
|
<spiffworkflow:properties>
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="your-age-schema.json" />
|
|
<spiffworkflow:property name="formUiSchemaFilename" value="your-age-uischema.json" />
|
|
</spiffworkflow:properties>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0vnkhc5</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1vfbldw</bpmn:outgoing>
|
|
</bpmn:userTask>
|
|
</bpmn:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Exclusive_Gateway_Process">
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
<dc:Bounds x="179" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Gateway_04kw2o4_di" bpmnElement="Gateway_04kw2o4" isMarkerVisible="true">
|
|
<dc:Bounds x="425" y="152" width="50" height="50" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="428" y="122" width="47" height="27" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_0767czo_di" bpmnElement="Event_0767czo">
|
|
<dc:Bounds x="682" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_08nh8ex_di" bpmnElement="Event_08nh8ex">
|
|
<dc:Bounds x="682" y="272" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1dctjx0_di" bpmnElement="Activity_0037bsk">
|
|
<dc:Bounds x="520" y="137" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1s6btab_di" bpmnElement="Activity_1tgpm05">
|
|
<dc:Bounds x="520" y="230" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_17bafzu_di" bpmnElement="User_Task">
|
|
<dc:Bounds x="270" y="137" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_0vnkhc5_di" bpmnElement="Flow_0vnkhc5">
|
|
<di:waypoint x="215" y="177" />
|
|
<di:waypoint x="270" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1vfbldw_di" bpmnElement="Flow_1vfbldw">
|
|
<di:waypoint x="370" y="177" />
|
|
<di:waypoint x="425" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0ejbl6k_di" bpmnElement="Flow_0ejbl6k">
|
|
<di:waypoint x="475" y="177" />
|
|
<di:waypoint x="520" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1hua65s_di" bpmnElement="Flow_1hua65s">
|
|
<di:waypoint x="450" y="202" />
|
|
<di:waypoint x="450" y="270" />
|
|
<di:waypoint x="520" y="270" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_02hom7j_di" bpmnElement="Flow_02hom7j">
|
|
<di:waypoint x="620" y="290" />
|
|
<di:waypoint x="682" y="290" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_03q9vbw_di" bpmnElement="Flow_03q9vbw">
|
|
<di:waypoint x="620" y="177" />
|
|
<di:waypoint x="682" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|