160 lines
9.0 KiB
Plaintext
Raw Normal View History

<?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_0awdfjq</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: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: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: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_14t44xs</bpmn:incoming>
<bpmn:outgoing>Flow_0blijzp</bpmn:outgoing>
</bpmn:callActivity>
<bpmn:sequenceFlow id="Flow_0blijzp" sourceRef="Call_Waku_Messages_Message_Footer" targetRef="Activity_18vg53t" />
<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 + "\n- - - - - - - - - - - - - - - - - - - - - - -" + "\nSent: " + local_date_str + " @ " + local_time_str + "\n- - - - - - - - - - - - - - - - - - - - - - -" + 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:incoming>Flow_0awdfjq</bpmn:incoming>
<bpmn:outgoing>Flow_0uvnwj5</bpmn:outgoing>
</bpmn:callActivity>
<bpmn:sequenceFlow id="Flow_0awdfjq" sourceRef="StartEvent_1" targetRef="Call_Waku_Messages_Message_Body" />
<bpmn:sequenceFlow id="Flow_0bn6hlv" sourceRef="Activity_18vg53t" targetRef="Gateway_0quuycl" />
<bpmn:callActivity id="Activity_18vg53t" name="Call Shared: Local Date Time" calledElement="Shared_Local_Date_Time">
<bpmn:incoming>Flow_0blijzp</bpmn:incoming>
<bpmn:outgoing>Flow_0bn6hlv</bpmn:outgoing>
</bpmn:callActivity>
<bpmn:exclusiveGateway id="Gateway_0quuycl" name="Set Message" default="Flow_0frd453">
<bpmn:incoming>Flow_0bn6hlv</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_0uvnwj5</bpmn:incoming>
<bpmn:outgoing>Flow_14t44xs</bpmn:outgoing>
</bpmn:callActivity>
<bpmn:sequenceFlow id="Flow_0uvnwj5" sourceRef="Call_Waku_Messages_Message_Body" targetRef="Call_Waku_Messages_Message_Variables" />
<bpmn:sequenceFlow id="Flow_14t44xs" sourceRef="Call_Waku_Messages_Message_Variables" targetRef="Call_Waku_Messages_Message_Footer" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Waku_Messages_Message">
<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_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="1272" 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="1020" y="134" width="100" height="80" />
</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="895" y="149" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="888" y="206" width="65" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1szvllt_di" bpmnElement="Gateway_1szvllt" isMarkerVisible="true">
<dc:Bounds x="1185" y="149" width="50" height="50" />
</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_19sx1n8_di" bpmnElement="Call_Waku_Messages_Message_Variables">
<dc:Bounds x="430" y="140" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0rwmlzg_di" bpmnElement="Call_Waku_Messages_Message_Body">
<dc:Bounds x="270" y="140" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="179" y="165" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0blijzp_di" bpmnElement="Flow_0blijzp">
<di:waypoint x="690" y="174" />
<di:waypoint x="750" y="174" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1b2tmcm_di" bpmnElement="Flow_1b2tmcm">
<di:waypoint x="1120" y="174" />
<di:waypoint x="1185" y="174" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0awdfjq_di" bpmnElement="Flow_0awdfjq">
<di:waypoint x="215" y="183" />
<di:waypoint x="270" y="183" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0bn6hlv_di" bpmnElement="Flow_0bn6hlv">
<di:waypoint x="850" y="174" />
<di:waypoint x="895" y="174" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0frd453_di" bpmnElement="Flow_0frd453">
<di:waypoint x="945" y="174" />
<di:waypoint x="1020" y="174" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1lxrn9n_di" bpmnElement="Flow_1lxrn9n">
<di:waypoint x="1235" y="174" />
<di:waypoint x="1272" y="174" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ypunfo_di" bpmnElement="Flow_1ypunfo">
<di:waypoint x="920" y="149" />
<di:waypoint x="920" y="100" />
<di:waypoint x="1210" y="100" />
<di:waypoint x="1210" y="149" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1058" y="82" width="15" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0uvnwj5_di" bpmnElement="Flow_0uvnwj5">
<di:waypoint x="370" y="180" />
<di:waypoint x="430" y="180" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_14t44xs_di" bpmnElement="Flow_14t44xs">
<di:waypoint x="530" y="180" />
<di:waypoint x="590" y="180" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>