mirror of
https://github.com/sartography/sample-process-models.git
synced 2025-02-23 21:28:05 +00:00
113 lines
5.9 KiB
XML
113 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_60_TC_5_2_bd2e724" />
|
|
<bpmn:participant id="Participant_1m8itti" name="Message Receiver N" />
|
|
<bpmn:messageFlow id="Flow_0l15d3g" sourceRef="Activity_082ccx3" targetRef="Participant_1m8itti" />
|
|
<bpmn:messageFlow id="Flow_0t8pnq8" sourceRef="Participant_1m8itti" targetRef="Event_1ysklap" />
|
|
<bpmn:correlationKey name="CorrelationKey_1">
|
|
<bpmn:correlationPropertyRef>mcp_topica_one</bpmn:correlationPropertyRef>
|
|
</bpmn:correlationKey>
|
|
</bpmn:collaboration>
|
|
<bpmn:process id="Process_test_tc_60_TC_5_2_bd2e724" isExecutable="true">
|
|
<bpmn:sequenceFlow id="Flow_1kh86v5" sourceRef="StartEvent_1" targetRef="Activity_07kdswo" />
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
<bpmn:outgoing>Flow_1kh86v5</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_0r2ckw3" sourceRef="Activity_082ccx3" targetRef="Event_1ysklap" />
|
|
<bpmn:sequenceFlow id="Flow_0u0ozga" sourceRef="Event_1ysklap" targetRef="Event_05735v0" />
|
|
<bpmn:endEvent id="Event_05735v0">
|
|
<bpmn:incoming>Flow_0u0ozga</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:intermediateCatchEvent id="Event_1ysklap">
|
|
<bpmn:incoming>Flow_0r2ckw3</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0u0ozga</bpmn:outgoing>
|
|
<bpmn:messageEventDefinition id="MessageEventDefinition_17zk4un" messageRef="Message_N2" />
|
|
</bpmn:intermediateCatchEvent>
|
|
<bpmn:sendTask id="Activity_082ccx3" name="Send message" messageRef="Message_N">
|
|
<bpmn:incoming>Flow_12hrt0s</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0r2ckw3</bpmn:outgoing>
|
|
</bpmn:sendTask>
|
|
<bpmn:sequenceFlow id="Flow_12hrt0s" sourceRef="Activity_07kdswo" targetRef="Activity_082ccx3" />
|
|
<bpmn:scriptTask id="Activity_07kdswo" name="Set Topic">
|
|
<bpmn:incoming>Flow_1kh86v5</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_12hrt0s</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_N2">
|
|
<bpmn:formalExpression>topica_one</bpmn:formalExpression>
|
|
</bpmn:correlationPropertyRetrievalExpression>
|
|
<bpmn:correlationPropertyRetrievalExpression messageRef="Message_N">
|
|
<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>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="790" height="150" />
|
|
</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_05735v0_di" bpmnElement="Event_05735v0">
|
|
<dc:Bounds x="712" y="132" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_0kuq65z_di" bpmnElement="Event_1ysklap">
|
|
<dc:Bounds x="602" y="132" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0ht8lkh_di" bpmnElement="Activity_082ccx3">
|
|
<dc:Bounds x="410" y="110" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1r4gotz_di" bpmnElement="Activity_07kdswo">
|
|
<dc:Bounds x="240" y="110" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_1kh86v5_di" bpmnElement="Flow_1kh86v5">
|
|
<di:waypoint x="179" y="150" />
|
|
<di:waypoint x="240" y="150" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0r2ckw3_di" bpmnElement="Flow_0r2ckw3">
|
|
<di:waypoint x="510" y="150" />
|
|
<di:waypoint x="602" y="150" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0u0ozga_di" bpmnElement="Flow_0u0ozga">
|
|
<di:waypoint x="638" y="150" />
|
|
<di:waypoint x="712" y="150" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_12hrt0s_di" bpmnElement="Flow_12hrt0s">
|
|
<di:waypoint x="340" y="150" />
|
|
<di:waypoint x="410" y="150" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNShape id="Participant_0f50pkr_di" bpmnElement="Participant_1m8itti" isHorizontal="true">
|
|
<dc:Bounds x="200" y="270" width="530" height="60" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_0l15d3g_di" bpmnElement="Flow_0l15d3g">
|
|
<di:waypoint x="460" y="190" />
|
|
<di:waypoint x="460" y="270" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0t8pnq8_di" bpmnElement="Flow_0t8pnq8">
|
|
<di:waypoint x="620" y="270" />
|
|
<di:waypoint x="620" y="168" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|