2022-10-19 23:38:57 +00:00
|
|
|
<?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">
|
2022-10-19 23:39:46 +00:00
|
|
|
<bpmn:process id="Shared_User_Info" name="Shared: User Info" isExecutable="true">
|
2022-10-19 23:38:57 +00:00
|
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
|
|
<bpmn:outgoing>Flow_1q8xtg6</bpmn:outgoing>
|
|
|
|
</bpmn:startEvent>
|
|
|
|
<bpmn:sequenceFlow id="Flow_1q8xtg6" sourceRef="StartEvent_1" targetRef="Activity_0v13afu" />
|
|
|
|
<bpmn:businessRuleTask id="Activity_0v13afu" name="Get User Info">
|
|
|
|
<bpmn:extensionElements>
|
|
|
|
<spiffworkflow:calledDecisionId>user_info</spiffworkflow:calledDecisionId>
|
|
|
|
</bpmn:extensionElements>
|
|
|
|
<bpmn:incoming>Flow_1q8xtg6</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_08nmyrt</bpmn:outgoing>
|
|
|
|
</bpmn:businessRuleTask>
|
|
|
|
<bpmn:endEvent id="Event_0fb034d">
|
2022-10-24 18:45:03 +00:00
|
|
|
<bpmn:incoming>Flow_0fptylq</bpmn:incoming>
|
2022-10-19 23:38:57 +00:00
|
|
|
</bpmn:endEvent>
|
2022-10-20 04:08:24 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_08nmyrt" sourceRef="Activity_0v13afu" targetRef="Gateway_0xlrnzx" />
|
|
|
|
<bpmn:exclusiveGateway id="Gateway_0xlrnzx" name="Current User?" default="Flow_0i96b90">
|
|
|
|
<bpmn:incoming>Flow_08nmyrt</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_0i96b90</bpmn:outgoing>
|
|
|
|
<bpmn:outgoing>Flow_0d47w7r</bpmn:outgoing>
|
|
|
|
</bpmn:exclusiveGateway>
|
|
|
|
<bpmn:sequenceFlow id="Flow_0i96b90" name="Yes" sourceRef="Gateway_0xlrnzx" targetRef="Activity_1a9fimb" />
|
|
|
|
<bpmn:exclusiveGateway id="Gateway_1ifycz3">
|
|
|
|
<bpmn:incoming>Flow_020y0gy</bpmn:incoming>
|
2022-10-20 04:33:54 +00:00
|
|
|
<bpmn:incoming>Flow_1xyb00m</bpmn:incoming>
|
2022-10-20 04:08:24 +00:00
|
|
|
<bpmn:outgoing>Flow_1usol5m</bpmn:outgoing>
|
|
|
|
</bpmn:exclusiveGateway>
|
2022-10-25 01:11:04 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_1usol5m" sourceRef="Gateway_1ifycz3" targetRef="Activity_1uw66e8" />
|
2022-10-20 04:08:24 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_020y0gy" sourceRef="Activity_1a9fimb" targetRef="Gateway_1ifycz3" />
|
2022-10-20 04:33:54 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_0d47w7r" name="No" sourceRef="Gateway_0xlrnzx" targetRef="Activity_1gv90o4">
|
2022-10-20 04:08:24 +00:00
|
|
|
<bpmn:conditionExpression>not(isCurrentUser)</bpmn:conditionExpression>
|
|
|
|
</bpmn:sequenceFlow>
|
2022-10-20 05:51:29 +00:00
|
|
|
<bpmn:scriptTask id="Activity_1a9fimb" name="Update Current User Extras" scriptFormat="python">
|
2022-10-20 04:15:14 +00:00
|
|
|
<bpmn:incoming>Flow_0i96b90</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_020y0gy</bpmn:outgoing>
|
2022-10-20 04:54:44 +00:00
|
|
|
<bpmn:script># Update Current User Extras
|
2022-10-20 04:59:49 +00:00
|
|
|
current_user_extras = {}
|
2022-10-20 04:54:44 +00:00
|
|
|
current_user_extras["full_name"] = userFullName
|
2022-10-20 04:55:33 +00:00
|
|
|
current_user_extras["first_name"] = userFirstName
|
|
|
|
current_user_extras["email"] = userEmail
|
2022-10-20 05:47:13 +00:00
|
|
|
current_user_extras["team_lead_username"] = userTeamLeadUsername
|
2022-10-20 05:13:39 +00:00
|
|
|
current_user_extras["status_key"] = userStatusKey
|
|
|
|
|
|
|
|
del(userFullName)
|
|
|
|
del (userFirstName)
|
|
|
|
del(userEmail)
|
2022-10-20 05:51:29 +00:00
|
|
|
del(userTeamLeadUsername)
|
2022-10-20 05:13:39 +00:00
|
|
|
del(userStatusKey)</bpmn:script>
|
2022-10-20 04:33:54 +00:00
|
|
|
</bpmn:scriptTask>
|
|
|
|
<bpmn:sequenceFlow id="Flow_1xyb00m" sourceRef="Activity_1gv90o4" targetRef="Gateway_1ifycz3" />
|
|
|
|
<bpmn:scriptTask id="Activity_1gv90o4" name="Temp">
|
|
|
|
<bpmn:incoming>Flow_0d47w7r</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_1xyb00m</bpmn:outgoing>
|
|
|
|
<bpmn:script>test_check = "outside"</bpmn:script>
|
2022-10-20 04:15:14 +00:00
|
|
|
</bpmn:scriptTask>
|
2022-10-24 18:45:03 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_0fptylq" sourceRef="Activity_1uw66e8" targetRef="Event_0fb034d" />
|
|
|
|
<bpmn:serviceTask id="Activity_1uw66e8" name="Get User Info From Bamboo">
|
|
|
|
<bpmn:extensionElements>
|
|
|
|
<spiffworkflow:serviceTaskOperator id="bamboohr/GetEmployeeInfo" resultVariable="resp_BambooUserInfo">
|
|
|
|
<spiffworkflow:parameters>
|
|
|
|
<spiffworkflow:parameter id="employee_id" type="str" value="userBambooId" />
|
2022-10-24 18:53:53 +00:00
|
|
|
<spiffworkflow:parameter id="fields" type="str" value="'supervisorEmail,supervisorId,supervisorEid'" />
|
2022-10-24 18:45:03 +00:00
|
|
|
</spiffworkflow:parameters>
|
|
|
|
</spiffworkflow:serviceTaskOperator>
|
|
|
|
</bpmn:extensionElements>
|
2022-10-25 01:11:04 +00:00
|
|
|
<bpmn:incoming>Flow_1usol5m</bpmn:incoming>
|
2022-10-24 18:45:03 +00:00
|
|
|
<bpmn:outgoing>Flow_0fptylq</bpmn:outgoing>
|
|
|
|
</bpmn:serviceTask>
|
2022-10-19 23:38:57 +00:00
|
|
|
</bpmn:process>
|
|
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
2022-10-19 23:39:46 +00:00
|
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Shared_User_Info">
|
2022-10-19 23:38:57 +00:00
|
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
|
|
<dc:Bounds x="179" y="159" width="36" height="36" />
|
|
|
|
</bpmndi:BPMNShape>
|
|
|
|
<bpmndi:BPMNShape id="Activity_0hlcuhi_di" bpmnElement="Activity_0v13afu">
|
|
|
|
<dc:Bounds x="270" y="137" width="100" height="80" />
|
|
|
|
</bpmndi:BPMNShape>
|
2022-10-25 01:11:04 +00:00
|
|
|
<bpmndi:BPMNShape id="Event_0fb034d_di" bpmnElement="Event_0fb034d">
|
|
|
|
<dc:Bounds x="1232" y="159" width="36" height="36" />
|
|
|
|
</bpmndi:BPMNShape>
|
2022-10-20 04:08:24 +00:00
|
|
|
<bpmndi:BPMNShape id="Gateway_0xlrnzx_di" bpmnElement="Gateway_0xlrnzx" isMarkerVisible="true">
|
|
|
|
<dc:Bounds x="435" y="152" width="50" height="50" />
|
|
|
|
<bpmndi:BPMNLabel>
|
|
|
|
<dc:Bounds x="426" y="209" width="70" height="14" />
|
|
|
|
</bpmndi:BPMNLabel>
|
|
|
|
</bpmndi:BPMNShape>
|
|
|
|
<bpmndi:BPMNShape id="Gateway_1ifycz3_di" bpmnElement="Gateway_1ifycz3" isMarkerVisible="true">
|
|
|
|
<dc:Bounds x="765" y="152" width="50" height="50" />
|
|
|
|
</bpmndi:BPMNShape>
|
2022-10-20 04:15:14 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_0rvcg5l_di" bpmnElement="Activity_1a9fimb">
|
2022-10-20 04:08:24 +00:00
|
|
|
<dc:Bounds x="570" y="137" width="100" height="80" />
|
2022-10-20 04:15:14 +00:00
|
|
|
<bpmndi:BPMNLabel />
|
2022-10-19 23:38:57 +00:00
|
|
|
</bpmndi:BPMNShape>
|
2022-10-20 04:33:54 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_1082hn5_di" bpmnElement="Activity_1gv90o4">
|
|
|
|
<dc:Bounds x="500" y="10" width="100" height="80" />
|
|
|
|
</bpmndi:BPMNShape>
|
2022-10-24 18:45:03 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_0nftxgp_di" bpmnElement="Activity_1uw66e8">
|
2022-10-25 01:07:27 +00:00
|
|
|
<dc:Bounds x="1050" y="137" width="100" height="80" />
|
|
|
|
</bpmndi:BPMNShape>
|
2022-10-19 23:38:57 +00:00
|
|
|
<bpmndi:BPMNEdge id="Flow_1q8xtg6_di" bpmnElement="Flow_1q8xtg6">
|
|
|
|
<di:waypoint x="215" y="177" />
|
|
|
|
<di:waypoint x="270" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_08nmyrt_di" bpmnElement="Flow_08nmyrt">
|
|
|
|
<di:waypoint x="370" y="177" />
|
2022-10-20 04:08:24 +00:00
|
|
|
<di:waypoint x="435" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_0i96b90_di" bpmnElement="Flow_0i96b90">
|
|
|
|
<di:waypoint x="485" y="177" />
|
|
|
|
<di:waypoint x="570" y="177" />
|
|
|
|
<bpmndi:BPMNLabel>
|
|
|
|
<dc:Bounds x="519" y="159" width="18" height="14" />
|
|
|
|
</bpmndi:BPMNLabel>
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_1usol5m_di" bpmnElement="Flow_1usol5m">
|
|
|
|
<di:waypoint x="815" y="177" />
|
2022-10-25 01:11:04 +00:00
|
|
|
<di:waypoint x="1050" y="177" />
|
2022-10-20 04:08:24 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_020y0gy_di" bpmnElement="Flow_020y0gy">
|
|
|
|
<di:waypoint x="670" y="177" />
|
|
|
|
<di:waypoint x="765" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_0d47w7r_di" bpmnElement="Flow_0d47w7r">
|
|
|
|
<di:waypoint x="460" y="152" />
|
2022-10-20 04:33:54 +00:00
|
|
|
<di:waypoint x="460" y="50" />
|
|
|
|
<di:waypoint x="500" y="50" />
|
2022-10-20 04:08:24 +00:00
|
|
|
<bpmndi:BPMNLabel>
|
2022-10-24 18:45:03 +00:00
|
|
|
<dc:Bounds x="632" y="32" width="15" height="14" />
|
2022-10-20 04:08:24 +00:00
|
|
|
</bpmndi:BPMNLabel>
|
2022-10-19 23:38:57 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
2022-10-20 04:33:54 +00:00
|
|
|
<bpmndi:BPMNEdge id="Flow_1xyb00m_di" bpmnElement="Flow_1xyb00m">
|
|
|
|
<di:waypoint x="600" y="50" />
|
|
|
|
<di:waypoint x="790" y="50" />
|
|
|
|
<di:waypoint x="790" y="152" />
|
|
|
|
</bpmndi:BPMNEdge>
|
2022-10-24 18:45:03 +00:00
|
|
|
<bpmndi:BPMNEdge id="Flow_0fptylq_di" bpmnElement="Flow_0fptylq">
|
2022-10-25 01:07:27 +00:00
|
|
|
<di:waypoint x="1150" y="177" />
|
|
|
|
<di:waypoint x="1232" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
2022-10-19 23:38:57 +00:00
|
|
|
</bpmndi:BPMNPlane>
|
|
|
|
</bpmndi:BPMNDiagram>
|
|
|
|
</bpmn:definitions>
|