106 lines
6.0 KiB
XML
106 lines
6.0 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:collaboration id="Collaboration_0oye1os" messages="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]">
|
|
<bpmn:participant id="message_receiver" name="Message Receiver (invoice approver)" processRef="message_receiver_process" />
|
|
<bpmn:participant id="message_sender" name="Message Sender" />
|
|
<bpmn:messageFlow id="message_send_flow" name="Message Send Flow" sourceRef="message_sender" targetRef="receive_message" />
|
|
<bpmn:messageFlow id="Flow_0ds946g" sourceRef="send_message_response" targetRef="message_sender" />
|
|
<bpmn:correlationKey name="invoice">
|
|
<bpmn:correlationPropertyRef>customer_id</bpmn:correlationPropertyRef>
|
|
<bpmn:correlationPropertyRef>po_number</bpmn:correlationPropertyRef>
|
|
</bpmn:correlationKey>
|
|
<bpmn:correlationKey name="receipt">
|
|
<bpmn:correlationPropertyRef>order_id</bpmn:correlationPropertyRef>
|
|
</bpmn:correlationKey>
|
|
</bpmn:collaboration>
|
|
<bpmn:correlationProperty id="customer_id" name="Customer Id">
|
|
<bpmn:correlationPropertyRetrievalExpression messageRef="request_approval">
|
|
<bpmn:formalExpression>customer_id</bpmn:formalExpression>
|
|
</bpmn:correlationPropertyRetrievalExpression>
|
|
<bpmn:correlationPropertyRetrievalExpression messageRef="approval_result">
|
|
<bpmn:formalExpression>invoice.customer_id</bpmn:formalExpression>
|
|
</bpmn:correlationPropertyRetrievalExpression>
|
|
</bpmn:correlationProperty>
|
|
<bpmn:correlationProperty id="po_number" name="Purchase Order Number">
|
|
<bpmn:correlationPropertyRetrievalExpression messageRef="request_approval">
|
|
<bpmn:formalExpression>po_number</bpmn:formalExpression>
|
|
</bpmn:correlationPropertyRetrievalExpression>
|
|
<bpmn:correlationPropertyRetrievalExpression messageRef="approval_result">
|
|
<bpmn:formalExpression>invoice.po_number</bpmn:formalExpression>
|
|
</bpmn:correlationPropertyRetrievalExpression>
|
|
</bpmn:correlationProperty>
|
|
<bpmn:message id="request_approval" name="Request Approval">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:messageVariable>invoice</spiffworkflow:messageVariable>
|
|
</bpmn:extensionElements>
|
|
</bpmn:message>
|
|
<bpmn:message id="approval_result" name="Approval Result">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:messagePayload>{"invoice": invoice}</spiffworkflow:messagePayload>
|
|
</bpmn:extensionElements>
|
|
</bpmn:message>
|
|
<bpmn:process id="message_receiver_process" name="Message Receiver Process" isExecutable="true">
|
|
<bpmn:sequenceFlow id="Flow_0fruoax" sourceRef="receive_message" targetRef="send_message_response" />
|
|
<bpmn:sequenceFlow id="Flow_11r9uiw" sourceRef="send_message_response" targetRef="Event_0q5otqd" />
|
|
<bpmn:endEvent id="Event_0q5otqd">
|
|
<bpmn:incoming>Flow_11r9uiw</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sendTask id="send_message_response" name="Send Message Reponse" messageRef="approval_result">
|
|
<bpmn:incoming>Flow_0fruoax</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_11r9uiw</bpmn:outgoing>
|
|
</bpmn:sendTask>
|
|
<bpmn:startEvent id="receive_message" name="Receive Message">
|
|
<bpmn:outgoing>Flow_0fruoax</bpmn:outgoing>
|
|
<bpmn:messageEventDefinition id="MessageEventDefinition_08u7ksn" messageRef="request_approval" />
|
|
</bpmn:startEvent>
|
|
</bpmn:process>
|
|
<bpmn:correlationProperty id="order_id" name="order_id">
|
|
<bpmn:correlationPropertyRetrievalExpression messageRef="approval_result">
|
|
<bpmn:formalExpression />
|
|
</bpmn:correlationPropertyRetrievalExpression>
|
|
</bpmn:correlationProperty>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_0oye1os">
|
|
<bpmndi:BPMNShape id="Participant_0mr0gg1_di" bpmnElement="message_receiver" isHorizontal="true">
|
|
<dc:Bounds x="120" y="350" width="480" height="230" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_0q5otqd_di" bpmnElement="Event_0q5otqd">
|
|
<dc:Bounds x="512" y="462" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_148b9w9_di" bpmnElement="send_message_response">
|
|
<dc:Bounds x="380" y="440" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_1rgz6f0_di" bpmnElement="receive_message">
|
|
<dc:Bounds x="172" y="462" width="36" height="36" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="149" y="505" width="88" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_0fruoax_di" bpmnElement="Flow_0fruoax">
|
|
<di:waypoint x="208" y="480" />
|
|
<di:waypoint x="380" y="480" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_11r9uiw_di" bpmnElement="Flow_11r9uiw">
|
|
<di:waypoint x="480" y="480" />
|
|
<di:waypoint x="512" y="480" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNShape id="Participant_0xvqrmk_di" bpmnElement="message_sender" isHorizontal="true">
|
|
<dc:Bounds x="130" y="250" width="360" height="60" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_1ueajoz_di" bpmnElement="message_send_flow">
|
|
<di:waypoint x="190" y="310" />
|
|
<di:waypoint x="190" y="462" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="193" y="408" width="74" height="27" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0ds946g_di" bpmnElement="Flow_0ds946g">
|
|
<di:waypoint x="430" y="440" />
|
|
<di:waypoint x="430" y="310" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|