demo-process-models/playground/emerson/test3/Test 4.bpmn

97 lines
4.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:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
<bpmn:process id="Process_xb23kmw" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_05tev31</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_05tev31" sourceRef="StartEvent_1" targetRef="Activity_1894clh" />
<bpmn:userTask id="Activity_1894clh" name="GFS sub department form">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="Test form-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="Test form-uischema.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_05tev31</bpmn:incoming>
<bpmn:outgoing>Flow_0fmh50g</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_0fmh50g" sourceRef="Activity_1894clh" targetRef="Activity_062cbj5" />
<bpmn:scriptTask id="Activity_062cbj5" name="Manager by subdepartment">
<bpmn:incoming>Flow_0fmh50g</bpmn:incoming>
<bpmn:outgoing>Flow_1dinbr1</bpmn:outgoing>
<bpmn:script>subdepartment=int(GFS_subdepartment)
Manager="Manager"
if GFS_subdepartment="Invoice to Pay"
Manager="Paola"
elif GFS_subdepartment="Credit to Cash"
Manager="Felix"
elif GFS_subdepartment="Record to Report"
Manager="Jose, Gloriana, Carolina"
elif GFS_subdepartment="Continuous Improvement"
Manager="Jaciel"</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_1dinbr1" sourceRef="Activity_062cbj5" targetRef="Activity_12ry7vz" />
<bpmn:serviceTask id="Activity_12ry7vz" name="Send slack">
<bpmn:extensionElements>
<spiffworkflow:serviceTaskOperator id="slack/PostMessage">
<spiffworkflow:parameters>
<spiffworkflow:parameter id="token" type="str" value="&#34;Secretslack_token&#34;" />
<spiffworkflow:parameter id="channel" type="str" value="&#34;slack-connector-testing&#34;" />
<spiffworkflow:parameter id="message" type="str" value="&#34;Thank you for fill in the form&#34;" />
</spiffworkflow:parameters>
</spiffworkflow:serviceTaskOperator>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1dinbr1</bpmn:incoming>
<bpmn:outgoing>Flow_1n8bro8</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:endEvent id="Event_0v3fxe6">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>Thank you
Your manager is** {{Manager}}**</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1n8bro8</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1n8bro8" sourceRef="Activity_12ry7vz" targetRef="Event_0v3fxe6" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_xb23kmw">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="-138" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_03l5e6q_di" bpmnElement="Activity_1894clh">
<dc:Bounds x="-50" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_073oz0a_di" bpmnElement="Activity_062cbj5">
<dc:Bounds x="110" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_112zgvo_di" bpmnElement="Activity_12ry7vz">
<dc:Bounds x="270" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0v3fxe6_di" bpmnElement="Event_0v3fxe6">
<dc:Bounds x="432" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_05tev31_di" bpmnElement="Flow_05tev31">
<di:waypoint x="-102" y="177" />
<di:waypoint x="-50" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0fmh50g_di" bpmnElement="Flow_0fmh50g">
<di:waypoint x="50" y="177" />
<di:waypoint x="110" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1dinbr1_di" bpmnElement="Flow_1dinbr1">
<di:waypoint x="210" y="177" />
<di:waypoint x="270" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1n8bro8_di" bpmnElement="Flow_1n8bro8">
<di:waypoint x="370" y="177" />
<di:waypoint x="432" y="177" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>