85 lines
4.4 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:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_e3059e6" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.2.0">
<bpmn:process id="Process_LoggingTask" name="Logging Task" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_1vjxvjd</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1vjxvjd" sourceRef="StartEvent_1" targetRef="Activity_GetLogData" />
<bpmn:scriptTask id="Activity_LogEvent" name="Log Event">
<bpmn:incoming>Flow_126w4xi</bpmn:incoming>
<bpmn:outgoing>Flow_1mw0dlv</bpmn:outgoing>
<bpmn:script>log_model = log(level=level, code=code, message=message)</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_1mw0dlv" sourceRef="Activity_LogEvent" targetRef="Activity_DisplayLog" />
<bpmn:manualTask id="Activity_DisplayLog" name="DisplayLog">
<bpmn:documentation># Log Model
{{ log_model }}</bpmn:documentation>
<bpmn:incoming>Flow_1mw0dlv</bpmn:incoming>
<bpmn:outgoing>Flow_016ui0e</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:endEvent id="Event_06g3ojm">
<bpmn:incoming>Flow_016ui0e</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_016ui0e" sourceRef="Activity_DisplayLog" targetRef="Event_06g3ojm" />
<bpmn:sequenceFlow id="Flow_126w4xi" sourceRef="Activity_GetLogData" targetRef="Activity_LogEvent" />
<bpmn:userTask id="Activity_GetLogData" name="Get Log Data" camunda:formKey="LogDataForm">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="level" label="&#39;Level&#39;" type="string" defaultValue="&#39;info&#39;">
<camunda:validation>
<camunda:constraint name="required" config="True" />
</camunda:validation>
</camunda:formField>
<camunda:formField id="code" label="&#39;Code&#39;" type="string">
<camunda:validation>
<camunda:constraint name="required" config="True" />
</camunda:validation>
</camunda:formField>
<camunda:formField id="message" label="&#39;Message&#39;" type="string">
<camunda:validation>
<camunda:constraint name="required" config="True" />
</camunda:validation>
</camunda:formField>
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1vjxvjd</bpmn:incoming>
<bpmn:outgoing>Flow_126w4xi</bpmn:outgoing>
</bpmn:userTask>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_LoggingTask">
<bpmndi:BPMNEdge id="Flow_1vjxvjd_di" bpmnElement="Flow_1vjxvjd">
<di:waypoint x="215" y="117" />
<di:waypoint x="274" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_126w4xi_di" bpmnElement="Flow_126w4xi">
<di:waypoint x="374" y="117" />
<di:waypoint x="438" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1mw0dlv_di" bpmnElement="Flow_1mw0dlv">
<di:waypoint x="538" y="117" />
<di:waypoint x="602" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_016ui0e_di" bpmnElement="Flow_016ui0e">
<di:waypoint x="702" y="117" />
<di:waypoint x="762" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="179" y="99" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_06g3ojm_di" bpmnElement="Event_06g3ojm">
<dc:Bounds x="762" y="99" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_08z1eq4_di" bpmnElement="Activity_LogEvent">
<dc:Bounds x="438" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0amiq7i_di" bpmnElement="Activity_DisplayLog">
<dc:Bounds x="602" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0trhnak_di" bpmnElement="Activity_GetLogData">
<dc:Bounds x="274" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>