sample-process-models/misc/test/tc-50/TC-4.2.bpmn

115 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: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_test_tc_50_TC_4_2_bd2e724" />
<bpmn:participant id="Participant_1m8itti" name="Message Receiver X" />
<bpmn:messageFlow id="Flow_0hu6xs2" sourceRef="Activity_1ia4x0v" targetRef="Participant_1m8itti" />
<bpmn:messageFlow id="Flow_0ahtto4" sourceRef="Participant_1m8itti" targetRef="Event_1lygzwy" />
<bpmn:correlationKey name="CorrelationKey_1">
<bpmn:correlationPropertyRef>mcp_topica_one</bpmn:correlationPropertyRef>
</bpmn:correlationKey>
</bpmn:collaboration>
<bpmn:process id="Process_test_tc_50_TC_4_2_bd2e724" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_02trvmu</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_02trvmu" sourceRef="StartEvent_1" targetRef="Activity_1sf61zm" />
<bpmn:sequenceFlow id="Flow_1wxbxsl" sourceRef="Activity_1ia4x0v" targetRef="Event_1lygzwy" />
<bpmn:endEvent id="Event_1kgm6i3">
<bpmn:incoming>Flow_0fjq4cl</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1fciaqh" sourceRef="Activity_1sf61zm" targetRef="Activity_1ia4x0v" />
<bpmn:sendTask id="Activity_1ia4x0v" name="Send message" messageRef="Message_X">
<bpmn:incoming>Flow_1fciaqh</bpmn:incoming>
<bpmn:outgoing>Flow_1wxbxsl</bpmn:outgoing>
</bpmn:sendTask>
<bpmn:sequenceFlow id="Flow_0fjq4cl" sourceRef="Event_1lygzwy" targetRef="Event_1kgm6i3" />
<bpmn:intermediateCatchEvent id="Event_1lygzwy">
<bpmn:incoming>Flow_1wxbxsl</bpmn:incoming>
<bpmn:outgoing>Flow_0fjq4cl</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_1wt0vxj" messageRef="Message_X2" />
</bpmn:intermediateCatchEvent>
<bpmn:scriptTask id="Activity_1sf61zm" name="Set Topic">
<bpmn:incoming>Flow_02trvmu</bpmn:incoming>
<bpmn:outgoing>Flow_1fciaqh</bpmn:outgoing>
<bpmn:script>
timestamp = time.time()
topic_one_a = f"topic_one_a_conversation_{timestamp}"
del time</bpmn:script>
</bpmn:scriptTask>
</bpmn:process>
<bpmn:correlationProperty id="mcp_topica_one" name="MCP TopicA One">
<bpmn:correlationPropertyRetrievalExpression messageRef="Message_X">
<bpmn:formalExpression>topica_one</bpmn:formalExpression>
</bpmn:correlationPropertyRetrievalExpression>
<bpmn:correlationPropertyRetrievalExpression messageRef="Message_X2">
<bpmn:formalExpression>topica_one</bpmn:formalExpression>
</bpmn:correlationPropertyRetrievalExpression>
</bpmn:correlationProperty>
<bpmn:message id="Message_X" name="Message_X">
<bpmn:extensionElements>
<spiffworkflow:messagePayload>{
"topica_one": topic_one_a,
"initial_var_one": 3
}</spiffworkflow:messagePayload>
</bpmn:extensionElements>
</bpmn:message>
<bpmn:message id="Message_X2" name="Message_X2">
<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="129" y="50" width="681" height="150" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="202" y="102" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1kgm6i3_di" bpmnElement="Event_1kgm6i3">
<dc:Bounds x="722" y="102" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0i8k9hp_di" bpmnElement="Activity_1ia4x0v">
<dc:Bounds x="440" y="80" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1ko68df_di" bpmnElement="Event_1lygzwy">
<dc:Bounds x="612" y="102" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0n0xgnv_di" bpmnElement="Activity_1sf61zm">
<dc:Bounds x="280" y="80" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_02trvmu_di" bpmnElement="Flow_02trvmu">
<di:waypoint x="238" y="120" />
<di:waypoint x="280" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1wxbxsl_di" bpmnElement="Flow_1wxbxsl">
<di:waypoint x="540" y="120" />
<di:waypoint x="612" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1fciaqh_di" bpmnElement="Flow_1fciaqh">
<di:waypoint x="380" y="120" />
<di:waypoint x="440" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0fjq4cl_di" bpmnElement="Flow_0fjq4cl">
<di:waypoint x="648" y="120" />
<di:waypoint x="722" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="Participant_0l5gok3_di" bpmnElement="Participant_1m8itti" isHorizontal="true">
<dc:Bounds x="254" y="220" width="431" height="60" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0hu6xs2_di" bpmnElement="Flow_0hu6xs2">
<di:waypoint x="490" y="160" />
<di:waypoint x="490" y="220" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0ahtto4_di" bpmnElement="Flow_0ahtto4">
<di:waypoint x="630" y="220" />
<di:waypoint x="630" y="138" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>