mirror of
https://github.com/sartography/spiffworkflow-backend.git
synced 2025-02-24 13:28:31 +00:00
89 lines
5.0 KiB
Plaintext
89 lines
5.0 KiB
Plaintext
|
<?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">
|
||
|
<bpmn:participant id="message_receiver" name="Message Receiver" 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="message_correlation_key">
|
||
|
<bpmn:correlationPropertyRef>message_correlation_property</bpmn:correlationPropertyRef>
|
||
|
</bpmn:correlationKey>
|
||
|
</bpmn:collaboration>
|
||
|
<bpmn:correlationProperty id="message_correlation_property" name="Message Correlation Property">
|
||
|
<bpmn:correlationPropertyRetrievalExpression messageRef="message_send">
|
||
|
<bpmn:formalExpression>topic</bpmn:formalExpression>
|
||
|
</bpmn:correlationPropertyRetrievalExpression>
|
||
|
<bpmn:correlationPropertyRetrievalExpression messageRef="message_response">
|
||
|
<bpmn:formalExpression>topic_nested.topic</bpmn:formalExpression>
|
||
|
</bpmn:correlationPropertyRetrievalExpression>
|
||
|
</bpmn:correlationProperty>
|
||
|
<bpmn:message id="message_send" name="Message Send">
|
||
|
<bpmn:extensionElements>
|
||
|
<spiffworkflow:messagePayload>{"topic": "first_conversation" }</spiffworkflow:messagePayload>
|
||
|
<spiffworkflow:messageVariable>the_payload</spiffworkflow:messageVariable>
|
||
|
</bpmn:extensionElements>
|
||
|
</bpmn:message>
|
||
|
<bpmn:message id="message_response" name="Message Response">
|
||
|
<bpmn:extensionElements>
|
||
|
<spiffworkflow:messagePayload>{"topic_nested": { "topic": "first_conversation"}}</spiffworkflow:messagePayload>
|
||
|
</bpmn:extensionElements>
|
||
|
</bpmn:message>
|
||
|
<bpmn:process id="message_receiver_process" name="Message Receiver Process" isExecutable="true">
|
||
|
<bpmn:endEvent id="Event_0q5otqd">
|
||
|
<bpmn:incoming>Flow_11r9uiw</bpmn:incoming>
|
||
|
</bpmn:endEvent>
|
||
|
<bpmn:startEvent id="receive_message" name="Receive Message">
|
||
|
<bpmn:outgoing>Flow_0fruoax</bpmn:outgoing>
|
||
|
<bpmn:messageEventDefinition id="MessageEventDefinition_08u7ksn" messageRef="message_send" />
|
||
|
</bpmn:startEvent>
|
||
|
<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:sendTask id="send_message_response" name="Send Message Reponse" messageRef="message_response">
|
||
|
<bpmn:incoming>Flow_0fruoax</bpmn:incoming>
|
||
|
<bpmn:outgoing>Flow_11r9uiw</bpmn:outgoing>
|
||
|
</bpmn:sendTask>
|
||
|
</bpmn:process>
|
||
|
<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="378" height="230" />
|
||
|
</bpmndi:BPMNShape>
|
||
|
<bpmndi:BPMNEdge id="Flow_11r9uiw_di" bpmnElement="Flow_11r9uiw">
|
||
|
<di:waypoint x="400" y="480" />
|
||
|
<di:waypoint x="442" y="480" />
|
||
|
</bpmndi:BPMNEdge>
|
||
|
<bpmndi:BPMNEdge id="Flow_0fruoax_di" bpmnElement="Flow_0fruoax">
|
||
|
<di:waypoint x="248" y="480" />
|
||
|
<di:waypoint x="300" y="480" />
|
||
|
</bpmndi:BPMNEdge>
|
||
|
<bpmndi:BPMNShape id="Event_0q5otqd_di" bpmnElement="Event_0q5otqd">
|
||
|
<dc:Bounds x="442" y="462" width="36" height="36" />
|
||
|
</bpmndi:BPMNShape>
|
||
|
<bpmndi:BPMNShape id="Event_1rgz6f0_di" bpmnElement="receive_message">
|
||
|
<dc:Bounds x="212" y="462" width="36" height="36" />
|
||
|
<bpmndi:BPMNLabel>
|
||
|
<dc:Bounds x="189" y="505" width="88" height="14" />
|
||
|
</bpmndi:BPMNLabel>
|
||
|
</bpmndi:BPMNShape>
|
||
|
<bpmndi:BPMNShape id="Activity_148b9w9_di" bpmnElement="send_message_response">
|
||
|
<dc:Bounds x="300" y="440" width="100" height="80" />
|
||
|
</bpmndi:BPMNShape>
|
||
|
<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="230" y="310" />
|
||
|
<di:waypoint x="230" y="460" />
|
||
|
<bpmndi:BPMNLabel>
|
||
|
<dc:Bounds x="233" y="407" width="74" height="27" />
|
||
|
</bpmndi:BPMNLabel>
|
||
|
</bpmndi:BPMNEdge>
|
||
|
<bpmndi:BPMNEdge id="Flow_0ds946g_di" bpmnElement="Flow_0ds946g">
|
||
|
<di:waypoint x="350" y="440" />
|
||
|
<di:waypoint x="350" y="310" />
|
||
|
</bpmndi:BPMNEdge>
|
||
|
</bpmndi:BPMNPlane>
|
||
|
</bpmndi:BPMNDiagram>
|
||
|
</bpmn:definitions>
|