190 lines
11 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:process id="Waku_Messages_Message" name="Waku Messages: Message" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_0056x0e</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:businessRuleTask id="Activity_0xuhps4" name="Get Waku Messages: Message Body">
<bpmn:extensionElements>
<spiffworkflow:calledDecisionId>Waku_Messages_Message_Body</spiffworkflow:calledDecisionId>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0056x0e</bpmn:incoming>
<bpmn:outgoing>Flow_1m4wsq4</bpmn:outgoing>
</bpmn:businessRuleTask>
<bpmn:businessRuleTask id="Activity_1pstq0l" name="Get Waku Message: Message Variables">
<bpmn:extensionElements>
<spiffworkflow:calledDecisionId>Waku_Messages_Message_Variables</spiffworkflow:calledDecisionId>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1m4wsq4</bpmn:incoming>
<bpmn:outgoing>Flow_1nzr0ye</bpmn:outgoing>
</bpmn:businessRuleTask>
<bpmn:businessRuleTask id="Get_Waku_Messages_Message_Footer" name="Get Waku Messages: Message Footer">
<bpmn:extensionElements>
<spiffworkflow:calledDecisionId>Waku_Messages_Message_Footer</spiffworkflow:calledDecisionId>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1nzr0ye</bpmn:incoming>
<bpmn:outgoing>Flow_0z6nwt8</bpmn:outgoing>
</bpmn:businessRuleTask>
<bpmn:endEvent id="Event_0hgb9d6">
<bpmn:incoming>Flow_1lxrn9n</bpmn:incoming>
</bpmn:endEvent>
<bpmn:callActivity id="Call_Waku_Messages_Message_Footer" name="Call Waku Messages: Message Footer" calledElement="Waku_Messages_Message_Footer">
<bpmn:incoming>Flow_0xlyajo</bpmn:incoming>
</bpmn:callActivity>
<bpmn:sequenceFlow id="Flow_1b2tmcm" sourceRef="Activity_1ll59ee" targetRef="Gateway_1szvllt" />
<bpmn:scriptTask id="Activity_1ll59ee" name="Set Message" scriptFormat="python">
<bpmn:incoming>Flow_0frd453</bpmn:incoming>
<bpmn:outgoing>Flow_1b2tmcm</bpmn:outgoing>
<bpmn:script># Set Message
waku_message = waku_message_body + waku_message_timestamp + waku_message_variables + waku_message_footer</bpmn:script>
</bpmn:scriptTask>
<bpmn:callActivity id="Call_Waku_Messages_Message_Body" name="Call Waku Messages: Message Body" calledElement="Waku_Messages_Message_Body">
<bpmn:outgoing>Flow_1mr3ufe</bpmn:outgoing>
</bpmn:callActivity>
<bpmn:sequenceFlow id="Flow_0bn6hlv" sourceRef="Activity_18vg53t" targetRef="Activity_1114i9z" />
<bpmn:callActivity id="Activity_18vg53t" name="Call Shared: Local Date Time" calledElement="Shared_Local_Date_Time">
<bpmn:incoming>Flow_0z6nwt8</bpmn:incoming>
<bpmn:outgoing>Flow_0bn6hlv</bpmn:outgoing>
</bpmn:callActivity>
<bpmn:exclusiveGateway id="Gateway_0quuycl" name="Set Message" default="Flow_0frd453">
<bpmn:incoming>Flow_0n2gvya</bpmn:incoming>
<bpmn:outgoing>Flow_0frd453</bpmn:outgoing>
<bpmn:outgoing>Flow_1ypunfo</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0frd453" sourceRef="Gateway_0quuycl" targetRef="Activity_1ll59ee" />
<bpmn:exclusiveGateway id="Gateway_1szvllt">
<bpmn:incoming>Flow_1b2tmcm</bpmn:incoming>
<bpmn:incoming>Flow_1ypunfo</bpmn:incoming>
<bpmn:outgoing>Flow_1lxrn9n</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_1lxrn9n" sourceRef="Gateway_1szvllt" targetRef="Event_0hgb9d6" />
<bpmn:sequenceFlow id="Flow_1ypunfo" name="No" sourceRef="Gateway_0quuycl" targetRef="Gateway_1szvllt">
<bpmn:conditionExpression>not(isSetMessage)</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:callActivity id="Call_Waku_Messages_Message_Variables" name="Call Waku Messages: Message Variables" calledElement="Waku_Messages_Message_Variables">
<bpmn:incoming>Flow_1mr3ufe</bpmn:incoming>
<bpmn:outgoing>Flow_0xlyajo</bpmn:outgoing>
</bpmn:callActivity>
<bpmn:sequenceFlow id="Flow_1mr3ufe" sourceRef="Call_Waku_Messages_Message_Body" targetRef="Call_Waku_Messages_Message_Variables" />
<bpmn:sequenceFlow id="Flow_0xlyajo" sourceRef="Call_Waku_Messages_Message_Variables" targetRef="Call_Waku_Messages_Message_Footer" />
<bpmn:sequenceFlow id="Flow_0n2gvya" sourceRef="Activity_1114i9z" targetRef="Gateway_0quuycl" />
<bpmn:scriptTask id="Activity_1114i9z" name="Set Waku Message Timestamp">
<bpmn:incoming>Flow_0bn6hlv</bpmn:incoming>
<bpmn:outgoing>Flow_0n2gvya</bpmn:outgoing>
<bpmn:script>waku_message_timestamp = "\n- - - - - - - - - - - - - - - - - - - - - - -" + "\nSent: " + local_date_str + " @ " + local_time_str + "\n- - - - - - - - - - - - - - - - - - - - - - -"</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_0056x0e" sourceRef="StartEvent_1" targetRef="Activity_0xuhps4" />
<bpmn:sequenceFlow id="Flow_1m4wsq4" sourceRef="Activity_0xuhps4" targetRef="Activity_1pstq0l" />
<bpmn:sequenceFlow id="Flow_1nzr0ye" sourceRef="Activity_1pstq0l" targetRef="Get_Waku_Messages_Message_Footer" />
<bpmn:sequenceFlow id="Flow_0z6nwt8" sourceRef="Get_Waku_Messages_Message_Footer" targetRef="Activity_18vg53t" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Waku_Messages_Message">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="152" y="292" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0vm75gb_di" bpmnElement="Activity_0xuhps4">
<dc:Bounds x="270" y="270" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1soux7h_di" bpmnElement="Activity_1pstq0l">
<dc:Bounds x="430" y="270" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_091bh2s_di" bpmnElement="Get_Waku_Messages_Message_Footer">
<dc:Bounds x="590" y="270" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0hgb9d6_di" bpmnElement="Event_0hgb9d6">
<dc:Bounds x="1472" y="156" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0f95fu3_di" bpmnElement="Call_Waku_Messages_Message_Footer">
<dc:Bounds x="590" y="134" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1h667no_di" bpmnElement="Activity_1ll59ee">
<dc:Bounds x="1220" y="134" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0rwmlzg_di" bpmnElement="Call_Waku_Messages_Message_Body">
<dc:Bounds x="270" y="134" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0vtbbbx_di" bpmnElement="Activity_18vg53t">
<dc:Bounds x="750" y="134" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0quuycl_di" bpmnElement="Gateway_0quuycl" isMarkerVisible="true">
<dc:Bounds x="1095" y="149" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1088" y="206" width="65" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1szvllt_di" bpmnElement="Gateway_1szvllt" isMarkerVisible="true">
<dc:Bounds x="1385" y="149" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_19sx1n8_di" bpmnElement="Call_Waku_Messages_Message_Variables">
<dc:Bounds x="430" y="134" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_13tt0o4_di" bpmnElement="Activity_1114i9z">
<dc:Bounds x="920" y="134" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1b2tmcm_di" bpmnElement="Flow_1b2tmcm">
<di:waypoint x="1320" y="174" />
<di:waypoint x="1385" y="174" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0bn6hlv_di" bpmnElement="Flow_0bn6hlv">
<di:waypoint x="850" y="174" />
<di:waypoint x="920" y="174" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0frd453_di" bpmnElement="Flow_0frd453">
<di:waypoint x="1145" y="174" />
<di:waypoint x="1220" y="174" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1lxrn9n_di" bpmnElement="Flow_1lxrn9n">
<di:waypoint x="1435" y="174" />
<di:waypoint x="1472" y="174" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ypunfo_di" bpmnElement="Flow_1ypunfo">
<di:waypoint x="1120" y="149" />
<di:waypoint x="1120" y="100" />
<di:waypoint x="1410" y="100" />
<di:waypoint x="1410" y="149" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1258" y="82" width="15" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1mr3ufe_di" bpmnElement="Flow_1mr3ufe">
<di:waypoint x="370" y="174" />
<di:waypoint x="430" y="174" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0xlyajo_di" bpmnElement="Flow_0xlyajo">
<di:waypoint x="530" y="174" />
<di:waypoint x="590" y="174" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0n2gvya_di" bpmnElement="Flow_0n2gvya">
<di:waypoint x="1020" y="174" />
<di:waypoint x="1095" y="174" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0056x0e_di" bpmnElement="Flow_0056x0e">
<di:waypoint x="188" y="310" />
<di:waypoint x="270" y="310" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1m4wsq4_di" bpmnElement="Flow_1m4wsq4">
<di:waypoint x="370" y="310" />
<di:waypoint x="430" y="310" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1nzr0ye_di" bpmnElement="Flow_1nzr0ye">
<di:waypoint x="530" y="310" />
<di:waypoint x="590" y="310" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0z6nwt8_di" bpmnElement="Flow_0z6nwt8">
<di:waypoint x="690" y="310" />
<di:waypoint x="720" y="310" />
<di:waypoint x="720" y="174" />
<di:waypoint x="750" y="174" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>