demo-process-models/playground/dilshad/dilshad-workflow/lanes.bpmn

310 lines
17 KiB
Plaintext
Raw Normal View History

<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_0ibnyhd" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.11.1" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.15.0">
<bpmn:collaboration id="Collaboration_112beap">
<bpmn:participant id="Participant_0syfhcb" name="Order Fulfillment" processRef="order_product" />
</bpmn:collaboration>
<bpmn:process id="order_product" name="Order Product" isExecutable="true">
<bpmn:laneSet id="LaneSet_1egm1jz">
<bpmn:lane id="Lane_1c3gw8l" name="Customer">
<bpmn:flowNodeRef>StartEvent_1</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_0gnvuqr</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_0bxy81n</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_1x4nw0v</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_1xib4t6</bpmn:flowNodeRef>
<bpmn:flowNodeRef>shipping_info_gateway</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_0gg5h3v</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_0h4nuly</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_1cm3imp</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_0jnqqws</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_1ulwq7u</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_0h1938t</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_0t2klx8</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_165jb2o" name="Employee">
<bpmn:flowNodeRef>Activity_1p0c9z2</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_0v4k0ca</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Event_136gk7h</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="StartEvent_1" name="Begin Order">
<bpmn:outgoing>Flow_19d1ca2</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:userTask id="Activity_0gnvuqr" name="Select Product and Quantity">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="select_product_and_quantity.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_19d1ca2</bpmn:incoming>
<bpmn:outgoing>Flow_0p31rh3</bpmn:outgoing>
</bpmn:userTask>
<bpmn:businessRuleTask id="Activity_0bxy81n" name="Look Up Product Price">
<bpmn:extensionElements>
<spiffworkflow:calledDecisionId>product_prices</spiffworkflow:calledDecisionId>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0i67gc9</bpmn:incoming>
<bpmn:incoming>Flow_0drurxm</bpmn:incoming>
<bpmn:outgoing>Flow_1x7gmud</bpmn:outgoing>
</bpmn:businessRuleTask>
<bpmn:exclusiveGateway id="Gateway_1x4nw0v" name="Is Product Customizable?" default="Flow_0drurxm">
<bpmn:incoming>Flow_0p31rh3</bpmn:incoming>
<bpmn:outgoing>Flow_1jfmezp</bpmn:outgoing>
<bpmn:outgoing>Flow_0drurxm</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:userTask id="Activity_1xib4t6" name="Select Product Color">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="select_product_color.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1jfmezp</bpmn:incoming>
<bpmn:outgoing>Flow_0i67gc9</bpmn:outgoing>
</bpmn:userTask>
<bpmn:parallelGateway id="shipping_info_gateway">
<bpmn:incoming>Flow_1x7gmud</bpmn:incoming>
<bpmn:outgoing>Flow_16po4do</bpmn:outgoing>
<bpmn:outgoing>Flow_0emp5k2</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:userTask id="Activity_0gg5h3v" name="Select Shipping Method">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="select_shipping_method.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_16po4do</bpmn:incoming>
<bpmn:outgoing>Flow_0di3wyr</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Activity_0h4nuly" name="Enter Shipping Address">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="enter_shipping_address.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0emp5k2</bpmn:incoming>
<bpmn:outgoing>Flow_0q6f23o</bpmn:outgoing>
</bpmn:userTask>
<bpmn:parallelGateway id="Gateway_1cm3imp">
<bpmn:incoming>Flow_0di3wyr</bpmn:incoming>
<bpmn:incoming>Flow_0q6f23o</bpmn:incoming>
<bpmn:outgoing>Flow_062tuue</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:businessRuleTask id="Activity_0jnqqws" name="Look Up Shipping Cost">
<bpmn:extensionElements>
<spiffworkflow:calledDecisionId>shipping_costs</spiffworkflow:calledDecisionId>
</bpmn:extensionElements>
<bpmn:incoming>Flow_062tuue</bpmn:incoming>
<bpmn:outgoing>Flow_0uc6vnt</bpmn:outgoing>
</bpmn:businessRuleTask>
<bpmn:scriptTask id="Activity_1ulwq7u" name="Calculate Order Total">
<bpmn:incoming>Flow_0uc6vnt</bpmn:incoming>
<bpmn:outgoing>Flow_0rd1dlt</bpmn:outgoing>
<bpmn:script>order_total = product_quantity * product_price + shipping_cost</bpmn:script>
</bpmn:scriptTask>
<bpmn:manualTask id="Activity_0h1938t" name="Review Order">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>Order Summary
{{ product_name }}
Quantity: {{ product_quantity }}
Order Total: {{ order_total }}</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0rd1dlt</bpmn:incoming>
<bpmn:outgoing>Flow_0ke7chq</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:userTask id="Activity_0t2klx8" name="Enter Payment Info">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="enter_payment_info.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0ke7chq</bpmn:incoming>
<bpmn:outgoing>Flow_1nprqwr</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_0uc6vnt" sourceRef="Activity_0jnqqws" targetRef="Activity_1ulwq7u" />
<bpmn:sequenceFlow id="Flow_062tuue" sourceRef="Gateway_1cm3imp" targetRef="Activity_0jnqqws" />
<bpmn:sequenceFlow id="Flow_0q6f23o" sourceRef="Activity_0h4nuly" targetRef="Gateway_1cm3imp" />
<bpmn:sequenceFlow id="Flow_0di3wyr" sourceRef="Activity_0gg5h3v" targetRef="Gateway_1cm3imp" />
<bpmn:sequenceFlow id="Flow_0emp5k2" sourceRef="shipping_info_gateway" targetRef="Activity_0h4nuly" />
<bpmn:sequenceFlow id="Flow_16po4do" sourceRef="shipping_info_gateway" targetRef="Activity_0gg5h3v" />
<bpmn:sequenceFlow id="Flow_1x7gmud" sourceRef="Activity_0bxy81n" targetRef="shipping_info_gateway" />
<bpmn:sequenceFlow id="Flow_0drurxm" name="No" sourceRef="Gateway_1x4nw0v" targetRef="Activity_0bxy81n" />
<bpmn:sequenceFlow id="Flow_0i67gc9" sourceRef="Activity_1xib4t6" targetRef="Activity_0bxy81n" />
<bpmn:sequenceFlow id="Flow_1jfmezp" name="Yes" sourceRef="Gateway_1x4nw0v" targetRef="Activity_1xib4t6">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">product_name == 'product_c'</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0p31rh3" sourceRef="Activity_0gnvuqr" targetRef="Gateway_1x4nw0v" />
<bpmn:sequenceFlow id="Flow_0rd1dlt" sourceRef="Activity_1ulwq7u" targetRef="Activity_0h1938t" />
<bpmn:sequenceFlow id="Flow_19d1ca2" sourceRef="StartEvent_1" targetRef="Activity_0gnvuqr" />
<bpmn:sequenceFlow id="Flow_0ke7chq" sourceRef="Activity_0h1938t" targetRef="Activity_0t2klx8" />
<bpmn:sequenceFlow id="Flow_1nprqwr" sourceRef="Activity_0t2klx8" targetRef="Activity_1p0c9z2" />
<bpmn:sequenceFlow id="Flow_1y8lykf" sourceRef="Activity_1p0c9z2" targetRef="Activity_0v4k0ca" />
<bpmn:sequenceFlow id="Flow_1gb247l" sourceRef="Activity_0v4k0ca" targetRef="Event_136gk7h" />
<bpmn:manualTask id="Activity_1p0c9z2" name="Charge Customer">
<bpmn:incoming>Flow_1nprqwr</bpmn:incoming>
<bpmn:outgoing>Flow_1y8lykf</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:manualTask id="Activity_0v4k0ca" name="Fulfill Order">
<bpmn:incoming>Flow_1y8lykf</bpmn:incoming>
<bpmn:outgoing>Flow_1gb247l</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:endEvent id="Event_136gk7h" name="End Order">
<bpmn:incoming>Flow_1gb247l</bpmn:incoming>
</bpmn:endEvent>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_112beap">
<bpmndi:BPMNShape id="Participant_0syfhcb_di" bpmnElement="Participant_0syfhcb" isHorizontal="true">
<dc:Bounds x="160" y="60" width="1570" height="450" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_1c3gw8l_di" bpmnElement="Lane_1c3gw8l" isHorizontal="true">
<dc:Bounds x="190" y="60" width="1540" height="280" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_165jb2o_di" bpmnElement="Lane_165jb2o" isHorizontal="true">
<dc:Bounds x="190" y="340" width="1540" height="170" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0uc6vnt_di" bpmnElement="Flow_0uc6vnt">
<di:waypoint x="1220" y="197" />
<di:waypoint x="1260" y="197" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_062tuue_di" bpmnElement="Flow_062tuue">
<di:waypoint x="1095" y="197" />
<di:waypoint x="1120" y="197" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0q6f23o_di" bpmnElement="Flow_0q6f23o">
<di:waypoint x="1020" y="280" />
<di:waypoint x="1070" y="280" />
<di:waypoint x="1070" y="222" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0di3wyr_di" bpmnElement="Flow_0di3wyr">
<di:waypoint x="1020" y="120" />
<di:waypoint x="1070" y="120" />
<di:waypoint x="1070" y="172" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0emp5k2_di" bpmnElement="Flow_0emp5k2">
<di:waypoint x="860" y="222" />
<di:waypoint x="860" y="280" />
<di:waypoint x="920" y="280" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_16po4do_di" bpmnElement="Flow_16po4do">
<di:waypoint x="860" y="172" />
<di:waypoint x="860" y="120" />
<di:waypoint x="920" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1x7gmud_di" bpmnElement="Flow_1x7gmud">
<di:waypoint x="800" y="197" />
<di:waypoint x="835" y="197" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0drurxm_di" bpmnElement="Flow_0drurxm">
<di:waypoint x="545" y="197" />
<di:waypoint x="700" y="197" />
<bpmndi:BPMNLabel>
<dc:Bounds x="565" y="173" width="15" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0i67gc9_di" bpmnElement="Flow_0i67gc9">
<di:waypoint x="670" y="280" />
<di:waypoint x="750" y="280" />
<di:waypoint x="750" y="237" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1jfmezp_di" bpmnElement="Flow_1jfmezp">
<di:waypoint x="520" y="222" />
<di:waypoint x="520" y="280" />
<di:waypoint x="570" y="280" />
<bpmndi:BPMNLabel>
<dc:Bounds x="526" y="247" width="19" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0p31rh3_di" bpmnElement="Flow_0p31rh3">
<di:waypoint x="440" y="197" />
<di:waypoint x="495" y="197" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0rd1dlt_di" bpmnElement="Flow_0rd1dlt">
<di:waypoint x="1360" y="197" />
<di:waypoint x="1400" y="197" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_19d1ca2_di" bpmnElement="Flow_19d1ca2">
<di:waypoint x="285" y="197" />
<di:waypoint x="340" y="197" />
<bpmndi:BPMNLabel>
<dc:Bounds x="224" y="159" width="37" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0ke7chq_di" bpmnElement="Flow_0ke7chq">
<di:waypoint x="1500" y="197" />
<di:waypoint x="1540" y="197" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1nprqwr_di" bpmnElement="Flow_1nprqwr">
<di:waypoint x="1640" y="197" />
<di:waypoint x="1660" y="197" />
<di:waypoint x="1660" y="360" />
<di:waypoint x="1390" y="360" />
<di:waypoint x="1390" y="390" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1y8lykf_di" bpmnElement="Flow_1y8lykf">
<di:waypoint x="1440" y="430" />
<di:waypoint x="1480" y="430" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1gb247l_di" bpmnElement="Flow_1gb247l">
<di:waypoint x="1580" y="430" />
<di:waypoint x="1642" y="430" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="249" y="179" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="237" y="222" width="60" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ovzied_di" bpmnElement="Activity_0gnvuqr">
<dc:Bounds x="340" y="157" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_13h0958_di" bpmnElement="Activity_0bxy81n">
<dc:Bounds x="700" y="157" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1x4nw0v_di" bpmnElement="Gateway_1x4nw0v" isMarkerVisible="true">
<dc:Bounds x="495" y="172" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="484" y="142" width="73" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1axavz1_di" bpmnElement="Activity_1xib4t6">
<dc:Bounds x="570" y="240" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0qgtqj1_di" bpmnElement="shipping_info_gateway">
<dc:Bounds x="835" y="172" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0yx3xys_di" bpmnElement="Activity_0gg5h3v">
<dc:Bounds x="920" y="80" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0orau6r_di" bpmnElement="Activity_0h4nuly">
<dc:Bounds x="920" y="240" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1vabczd_di" bpmnElement="Gateway_1cm3imp">
<dc:Bounds x="1045" y="172" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1vtipqx_di" bpmnElement="Activity_0jnqqws">
<dc:Bounds x="1120" y="157" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ux9veg_di" bpmnElement="Activity_1ulwq7u">
<dc:Bounds x="1260" y="157" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1uxal7y_di" bpmnElement="Activity_0h1938t">
<dc:Bounds x="1400" y="157" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0mc8nhc_di" bpmnElement="Activity_0t2klx8">
<dc:Bounds x="1540" y="157" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0ams5sm_di" bpmnElement="Activity_1p0c9z2">
<dc:Bounds x="1340" y="390" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0nk59dg_di" bpmnElement="Activity_0v4k0ca">
<dc:Bounds x="1480" y="390" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_136gk7h_di" bpmnElement="Event_136gk7h">
<dc:Bounds x="1642" y="412" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1635" y="455" width="52" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>