cr-connect-workflow/tests/data/get_email_data/get_email_data.bpmn

75 lines
4.0 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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_5cbdc71" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.2.0">
<bpmn:process id="Process_GetEmailData" name="Get Email Data" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_1erkgz2</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1erkgz2" sourceRef="StartEvent_1" targetRef="Activity_GetData" />
<bpmn:userTask id="Activity_GetData" name="Get Data" camunda:formKey="DataForm">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="email_id" label="Email ID" type="string">
<camunda:validation>
<camunda:constraint name="required" config="True" />
</camunda:validation>
</camunda:formField>
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1erkgz2</bpmn:incoming>
<bpmn:outgoing>Flow_1ira7x5</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_1ira7x5" sourceRef="Activity_GetData" targetRef="Activity_GetEmailData" />
<bpmn:scriptTask id="Activity_GetEmailData" name="Get Email Data">
<bpmn:incoming>Flow_1ira7x5</bpmn:incoming>
<bpmn:outgoing>Flow_1bt23l3</bpmn:outgoing>
<bpmn:script>email_data = get_email_data(email_id=email_id)</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_1bt23l3" sourceRef="Activity_GetEmailData" targetRef="Activity_DisplayEmailData" />
<bpmn:manualTask id="Activity_DisplayEmailData" name="Display Email Data">
<bpmn:documentation># Email Data
{{ email_data }}</bpmn:documentation>
<bpmn:incoming>Flow_1bt23l3</bpmn:incoming>
<bpmn:outgoing>Flow_0uujrj4</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:endEvent id="Event_0s0boyj">
<bpmn:incoming>Flow_0uujrj4</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_0uujrj4" sourceRef="Activity_DisplayEmailData" targetRef="Event_0s0boyj" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_GetEmailData">
<bpmndi:BPMNEdge id="Flow_0uujrj4_di" bpmnElement="Flow_0uujrj4">
<di:waypoint x="690" y="117" />
<di:waypoint x="752" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1bt23l3_di" bpmnElement="Flow_1bt23l3">
<di:waypoint x="530" y="117" />
<di:waypoint x="590" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ira7x5_di" bpmnElement="Flow_1ira7x5">
<di:waypoint x="373" y="117" />
<di:waypoint x="430" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1erkgz2_di" bpmnElement="Flow_1erkgz2">
<di:waypoint x="215" y="117" />
<di:waypoint x="273" 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="Activity_1db9xh7_di" bpmnElement="Activity_GetEmailData">
<dc:Bounds x="430" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0ue8wu7_di" bpmnElement="Activity_DisplayEmailData">
<dc:Bounds x="590" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0s0boyj_di" bpmnElement="Event_0s0boyj">
<dc:Bounds x="752" y="99" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1wpvwpe_di" bpmnElement="Activity_GetData">
<dc:Bounds x="273" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>