182 lines
9.5 KiB
XML
182 lines
9.5 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_1fqnozz">
|
|
<bpmn:participant id="Participant_1jk5xyi" processRef="Process_new" />
|
|
<bpmn:participant id="Participant_0h750we" name="Message Receiver N" />
|
|
<bpmn:participant id="Participant_0f30j89" name="Message Receiver F" />
|
|
<bpmn:messageFlow id="Flow_16xu9c1" sourceRef="Event_1r7y0c1" targetRef="Participant_0h750we" />
|
|
<bpmn:messageFlow id="Flow_1wjt03e" sourceRef="Participant_0h750we" targetRef="Activity_08xljas" />
|
|
<bpmn:messageFlow id="Flow_15sm97y" sourceRef="Activity_1kb8wkd" targetRef="Participant_0f30j89" />
|
|
<bpmn:messageFlow id="Flow_12tkb47" sourceRef="Participant_0f30j89" targetRef="Event_1nlyxwl" />
|
|
<bpmn:correlationKey name="CorrelationKey_1">
|
|
<bpmn:correlationPropertyRef>mcp_topica_one</bpmn:correlationPropertyRef>
|
|
</bpmn:correlationKey>
|
|
<bpmn:correlationKey name="CorrelationKey_2">
|
|
<bpmn:correlationPropertyRef>mcp_topica_two</bpmn:correlationPropertyRef>
|
|
</bpmn:correlationKey>
|
|
</bpmn:collaboration>
|
|
<bpmn:process id="Process_new" isExecutable="true">
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
<bpmn:outgoing>Flow_1bk0sdv</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_1bk0sdv" sourceRef="StartEvent_1" targetRef="Activity_19g2fkm" />
|
|
<bpmn:sequenceFlow id="Flow_01oalj4" sourceRef="Event_1r7y0c1" targetRef="Activity_08xljas" />
|
|
<bpmn:sequenceFlow id="Flow_10mnhhi" sourceRef="Event_1nlyxwl" targetRef="Event_05735v0" />
|
|
<bpmn:endEvent id="Event_05735v0">
|
|
<bpmn:incoming>Flow_10mnhhi</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:intermediateCatchEvent id="Event_1nlyxwl">
|
|
<bpmn:incoming>Flow_1pjkm2z</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_10mnhhi</bpmn:outgoing>
|
|
<bpmn:messageEventDefinition id="MessageEventDefinition_1b51snf" messageRef="Message_2" />
|
|
</bpmn:intermediateCatchEvent>
|
|
<bpmn:sendTask id="Activity_1kb8wkd" name="Send message" messageRef="Message_1">
|
|
<bpmn:incoming>Flow_1b3025q</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1pjkm2z</bpmn:outgoing>
|
|
</bpmn:sendTask>
|
|
<bpmn:receiveTask id="Activity_08xljas" name="Receive message" messageRef="Message_N2">
|
|
<bpmn:incoming>Flow_01oalj4</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1b3025q</bpmn:outgoing>
|
|
</bpmn:receiveTask>
|
|
<bpmn:intermediateThrowEvent id="Event_1r7y0c1">
|
|
<bpmn:incoming>Flow_1rkklg1</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_01oalj4</bpmn:outgoing>
|
|
<bpmn:messageEventDefinition id="MessageEventDefinition_0ols1d7" messageRef="Message_N" />
|
|
</bpmn:intermediateThrowEvent>
|
|
<bpmn:sequenceFlow id="Flow_1rkklg1" sourceRef="Activity_19g2fkm" targetRef="Event_1r7y0c1" />
|
|
<bpmn:scriptTask id="Activity_19g2fkm" name="Set Topic">
|
|
<bpmn:incoming>Flow_1bk0sdv</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1rkklg1</bpmn:outgoing>
|
|
<bpmn:script>
|
|
timestamp = time.time()
|
|
topic_one_a = f"topic_one_a_conversation_{timestamp}"
|
|
topic_one_b = f"topic_one_b_conversation_{timestamp}"
|
|
topic_two_a = f"topic_two_a_conversation_{timestamp}"
|
|
topic_two_b = f"topic_two_b_conversation_{timestamp}"
|
|
del time</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
<bpmn:sequenceFlow id="Flow_1b3025q" sourceRef="Activity_08xljas" targetRef="Activity_1kb8wkd" />
|
|
<bpmn:sequenceFlow id="Flow_1pjkm2z" sourceRef="Activity_1kb8wkd" targetRef="Event_1nlyxwl" />
|
|
</bpmn:process>
|
|
<bpmn:correlationProperty id="mcp_topica_two" name="MCP TopicA Two">
|
|
<bpmn:correlationPropertyRetrievalExpression messageRef="Message_1">
|
|
<bpmn:formalExpression>topica_two</bpmn:formalExpression>
|
|
</bpmn:correlationPropertyRetrievalExpression>
|
|
<bpmn:correlationPropertyRetrievalExpression messageRef="Message_2">
|
|
<bpmn:formalExpression>topica_two</bpmn:formalExpression>
|
|
</bpmn:correlationPropertyRetrievalExpression>
|
|
</bpmn:correlationProperty>
|
|
<bpmn:correlationProperty id="mcp_topica_one" name="MCP TopicA One">
|
|
<bpmn:correlationPropertyRetrievalExpression messageRef="Message_N">
|
|
<bpmn:formalExpression>topica_one</bpmn:formalExpression>
|
|
</bpmn:correlationPropertyRetrievalExpression>
|
|
<bpmn:correlationPropertyRetrievalExpression messageRef="Message_N2">
|
|
<bpmn:formalExpression>topica_one</bpmn:formalExpression>
|
|
</bpmn:correlationPropertyRetrievalExpression>
|
|
</bpmn:correlationProperty>
|
|
<bpmn:message id="Message_N" name="Message_N">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:messagePayload>{
|
|
"topica_one": topic_one_a, "initial_var_one": 3 }</spiffworkflow:messagePayload>
|
|
</bpmn:extensionElements>
|
|
</bpmn:message>
|
|
<bpmn:message id="Message_N2" name="Message_N2">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:messageVariable>payload_N</spiffworkflow:messageVariable>
|
|
</bpmn:extensionElements>
|
|
</bpmn:message>
|
|
<bpmn:message id="Message_1" name="Message_1">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:messagePayload>{
|
|
"topica_two": topic_two_a,
|
|
"topicb_two": topic_two_b,
|
|
"initial_var_two": 6
|
|
}</spiffworkflow:messagePayload>
|
|
</bpmn:extensionElements>
|
|
</bpmn:message>
|
|
<bpmn:message id="Message_2" name="Message_2">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:messageVariable>var2</spiffworkflow:messageVariable>
|
|
</bpmn:extensionElements>
|
|
</bpmn:message>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1fqnozz">
|
|
<bpmndi:BPMNShape id="Participant_1jk5xyi_di" bpmnElement="Participant_1jk5xyi" isHorizontal="true">
|
|
<dc:Bounds x="70" y="70" width="860" height="160" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
<dc:Bounds x="143" y="132" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_1v3rqha_di" bpmnElement="Event_05735v0">
|
|
<dc:Bounds x="852" y="132" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_0nt97kh_di" bpmnElement="Event_1nlyxwl">
|
|
<dc:Bounds x="762" y="132" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_15v2hk9_di" bpmnElement="Activity_1kb8wkd">
|
|
<dc:Bounds x="610" y="110" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_04cpnfn_di" bpmnElement="Activity_08xljas">
|
|
<dc:Bounds x="450" y="110" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_1f99wsa_di" bpmnElement="Event_1r7y0c1">
|
|
<dc:Bounds x="372" y="132" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_11ez9kh_di" bpmnElement="Activity_19g2fkm">
|
|
<dc:Bounds x="230" y="110" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_1bk0sdv_di" bpmnElement="Flow_1bk0sdv">
|
|
<di:waypoint x="179" y="150" />
|
|
<di:waypoint x="230" y="150" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_01oalj4_di" bpmnElement="Flow_01oalj4">
|
|
<di:waypoint x="408" y="150" />
|
|
<di:waypoint x="450" y="150" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_10mnhhi_di" bpmnElement="Flow_10mnhhi">
|
|
<di:waypoint x="798" y="150" />
|
|
<di:waypoint x="852" y="150" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1rkklg1_di" bpmnElement="Flow_1rkklg1">
|
|
<di:waypoint x="330" y="150" />
|
|
<di:waypoint x="372" y="150" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1b3025q_di" bpmnElement="Flow_1b3025q">
|
|
<di:waypoint x="550" y="150" />
|
|
<di:waypoint x="610" y="150" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1pjkm2z_di" bpmnElement="Flow_1pjkm2z">
|
|
<di:waypoint x="710" y="150" />
|
|
<di:waypoint x="762" y="150" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNShape id="Participant_10ay6rk_di" bpmnElement="Participant_0h750we" isHorizontal="true">
|
|
<dc:Bounds x="120" y="260" width="600" height="60" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Participant_0hfykyg_di" bpmnElement="Participant_0f30j89" isHorizontal="true">
|
|
<dc:Bounds x="460" y="-30" width="460" height="60" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_16xu9c1_di" bpmnElement="Flow_16xu9c1">
|
|
<di:waypoint x="390" y="168" />
|
|
<di:waypoint x="390" y="260" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1wjt03e_di" bpmnElement="Flow_1wjt03e">
|
|
<di:waypoint x="510" y="260" />
|
|
<di:waypoint x="510" y="190" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_15sm97y_di" bpmnElement="Flow_15sm97y">
|
|
<di:waypoint x="660" y="110" />
|
|
<di:waypoint x="660" y="30" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_12tkb47_di" bpmnElement="Flow_12tkb47">
|
|
<di:waypoint x="780" y="30" />
|
|
<di:waypoint x="780" y="132" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|