2022-12-19 20:12:20 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2022-12-21 01:15:06 +00:00
|
|
|
<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="5.6.0">
|
2022-12-19 20:12:20 +00:00
|
|
|
<bpmn:collaboration id="Collaboration_1bu6kw8">
|
|
|
|
<bpmn:participant id="Participant_0exh9uj" name="Core Contributor" processRef="Raise_New_Demand_Request" />
|
|
|
|
</bpmn:collaboration>
|
|
|
|
<bpmn:process id="Raise_New_Demand_Request" name="Raise New Demand Request" isExecutable="true">
|
2022-12-22 21:02:54 +00:00
|
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
|
|
<bpmn:outgoing>Flow_0z8y9x8</bpmn:outgoing>
|
|
|
|
</bpmn:startEvent>
|
|
|
|
<bpmn:sequenceFlow id="Flow_0v2e2ml" sourceRef="Activity_1dhb10w" targetRef="Gateway_19omysq" />
|
|
|
|
<bpmn:sequenceFlow id="Flow_1mm6uz2" name="Procurement" sourceRef="Gateway_19omysq" targetRef="Activity_1ew2127">
|
|
|
|
<bpmn:conditionExpression>which_category == "procurement"</bpmn:conditionExpression>
|
|
|
|
</bpmn:sequenceFlow>
|
|
|
|
<bpmn:sequenceFlow id="Flow_0s5jvgp" name="Travel" sourceRef="Gateway_19omysq" targetRef="Activity_0uj2dxm">
|
|
|
|
<bpmn:conditionExpression>which_category == "travel"</bpmn:conditionExpression>
|
|
|
|
</bpmn:sequenceFlow>
|
|
|
|
<bpmn:sequenceFlow id="Flow_08x110e" name="Compensation" sourceRef="Gateway_19omysq" targetRef="Activity_1vs8nu6">
|
|
|
|
<bpmn:conditionExpression>which_category == "compensation"</bpmn:conditionExpression>
|
|
|
|
</bpmn:sequenceFlow>
|
|
|
|
<bpmn:sequenceFlow id="Flow_1etakrx" sourceRef="Activity_1vs8nu6" targetRef="Gateway_1m8umui" />
|
|
|
|
<bpmn:sequenceFlow id="Flow_1n2v07t" sourceRef="Activity_1ew2127" targetRef="Gateway_1m8umui" />
|
|
|
|
<bpmn:sequenceFlow id="Flow_1cxxkmt" sourceRef="Activity_0uj2dxm" targetRef="Gateway_1m8umui" />
|
|
|
|
<bpmn:sequenceFlow id="Flow_0498fqn" sourceRef="Gateway_1m8umui" targetRef="Event_1l2htbr" />
|
|
|
|
<bpmn:sequenceFlow id="Flow_0z8y9x8" sourceRef="StartEvent_1" targetRef="Activity_054mhim" />
|
|
|
|
<bpmn:sequenceFlow id="Flow_1k3j31g" sourceRef="Activity_1qcx18z" targetRef="Activity_1dhb10w" />
|
2022-12-27 21:10:14 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_090lxfa" sourceRef="Activity_054mhim" targetRef="Activity_0at47nx" />
|
2022-12-22 21:03:36 +00:00
|
|
|
<bpmn:callActivity id="Activity_054mhim" name="Call SR: Start Process" calledElement="SR-Start_Process">
|
2022-12-22 21:06:52 +00:00
|
|
|
<bpmn:extensionElements>
|
2022-12-22 21:13:16 +00:00
|
|
|
<spiffworkflow:preScript />
|
2022-12-22 21:06:52 +00:00
|
|
|
</bpmn:extensionElements>
|
2022-12-22 21:03:36 +00:00
|
|
|
<bpmn:incoming>Flow_0z8y9x8</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_090lxfa</bpmn:outgoing>
|
2022-12-19 20:12:20 +00:00
|
|
|
</bpmn:callActivity>
|
2022-12-22 21:03:36 +00:00
|
|
|
<bpmn:userTask id="Activity_1dhb10w" name="Select Category">
|
|
|
|
<bpmn:extensionElements>
|
|
|
|
<spiffworkflow:properties>
|
|
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="select-category-schema.json" />
|
|
|
|
<spiffworkflow:property name="formUiSchemaFilename" value="select-category-uischema.json" />
|
|
|
|
</spiffworkflow:properties>
|
|
|
|
</bpmn:extensionElements>
|
|
|
|
<bpmn:incoming>Flow_1k3j31g</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_0v2e2ml</bpmn:outgoing>
|
|
|
|
</bpmn:userTask>
|
2022-12-19 20:12:20 +00:00
|
|
|
<bpmn:scriptTask id="Activity_1qcx18z" name="Set Categories">
|
2022-12-27 21:10:14 +00:00
|
|
|
<bpmn:incoming>Flow_0hflz9l</bpmn:incoming>
|
2022-12-19 20:12:20 +00:00
|
|
|
<bpmn:outgoing>Flow_1k3j31g</bpmn:outgoing>
|
2022-12-28 16:59:12 +00:00
|
|
|
<bpmn:script># Determine if current user is a project lead
|
|
|
|
is_lead = current_user["username"] in get_group_members("Leads")
|
|
|
|
|
|
|
|
# Set Default Category List
|
2022-12-21 02:23:01 +00:00
|
|
|
which_categories_list = [
|
|
|
|
{
|
|
|
|
"label": "Procurement",
|
|
|
|
"value": "procurement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "Travel",
|
|
|
|
"value": "travel"
|
|
|
|
}
|
2022-12-28 16:59:12 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
# Only project leads have access to Compensation
|
|
|
|
if is_lead:
|
|
|
|
lead_only_category = {
|
|
|
|
"label": "Compensation",
|
|
|
|
"value": "compensation"
|
|
|
|
}
|
|
|
|
which_categories_list.append(lead_only_category)</bpmn:script>
|
2022-12-19 20:12:20 +00:00
|
|
|
</bpmn:scriptTask>
|
2022-12-22 21:03:36 +00:00
|
|
|
<bpmn:exclusiveGateway id="Gateway_1m8umui">
|
|
|
|
<bpmn:incoming>Flow_1etakrx</bpmn:incoming>
|
|
|
|
<bpmn:incoming>Flow_1n2v07t</bpmn:incoming>
|
|
|
|
<bpmn:incoming>Flow_1cxxkmt</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_0498fqn</bpmn:outgoing>
|
|
|
|
</bpmn:exclusiveGateway>
|
|
|
|
<bpmn:endEvent id="Event_1l2htbr">
|
|
|
|
<bpmn:incoming>Flow_0498fqn</bpmn:incoming>
|
|
|
|
</bpmn:endEvent>
|
|
|
|
<bpmn:callActivity id="Activity_0uj2dxm" name="Raise New Demand Request (Travel)" calledElement="New_Demand_Request-Travel">
|
|
|
|
<bpmn:incoming>Flow_0s5jvgp</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_1cxxkmt</bpmn:outgoing>
|
|
|
|
</bpmn:callActivity>
|
|
|
|
<bpmn:callActivity id="Activity_1ew2127" name="Raise New Demand Request (Procurement)" calledElement="New_Demand_Request-Procurement">
|
|
|
|
<bpmn:incoming>Flow_1mm6uz2</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_1n2v07t</bpmn:outgoing>
|
2022-12-22 21:02:54 +00:00
|
|
|
</bpmn:callActivity>
|
2022-12-22 21:03:36 +00:00
|
|
|
<bpmn:callActivity id="Activity_1vs8nu6" name="Raise New Demand Request (Compensation)" calledElement="New_Demand_Request-Compensation">
|
|
|
|
<bpmn:incoming>Flow_08x110e</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_1etakrx</bpmn:outgoing>
|
|
|
|
</bpmn:callActivity>
|
|
|
|
<bpmn:exclusiveGateway id="Gateway_19omysq" name="Category?">
|
|
|
|
<bpmn:incoming>Flow_0v2e2ml</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_1mm6uz2</bpmn:outgoing>
|
|
|
|
<bpmn:outgoing>Flow_0s5jvgp</bpmn:outgoing>
|
|
|
|
<bpmn:outgoing>Flow_08x110e</bpmn:outgoing>
|
|
|
|
</bpmn:exclusiveGateway>
|
2022-12-27 21:10:14 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_0hflz9l" sourceRef="Activity_0at47nx" targetRef="Activity_1qcx18z" />
|
|
|
|
<bpmn:scriptTask id="Activity_0at47nx" name="Check Leads Group">
|
|
|
|
<bpmn:incoming>Flow_090lxfa</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_0hflz9l</bpmn:outgoing>
|
2022-12-28 16:35:55 +00:00
|
|
|
<bpmn:script>is_lead = current_user["username"] in get_group_members("Leads")</bpmn:script>
|
2022-12-27 21:10:14 +00:00
|
|
|
</bpmn:scriptTask>
|
2022-12-19 20:12:20 +00:00
|
|
|
</bpmn:process>
|
|
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1bu6kw8">
|
|
|
|
<bpmndi:BPMNShape id="Participant_0exh9uj_di" bpmnElement="Participant_0exh9uj" isHorizontal="true">
|
2022-12-27 21:10:14 +00:00
|
|
|
<dc:Bounds x="190" y="80" width="1270" height="410" />
|
2022-12-19 20:12:20 +00:00
|
|
|
<bpmndi:BPMNLabel />
|
|
|
|
</bpmndi:BPMNShape>
|
2022-12-22 21:02:54 +00:00
|
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
|
|
<dc:Bounds x="242" y="262" width="36" height="36" />
|
|
|
|
</bpmndi:BPMNShape>
|
2022-12-22 21:06:52 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_08nqg47_di" bpmnElement="Activity_054mhim">
|
|
|
|
<dc:Bounds x="330" y="240" width="100" height="80" />
|
2022-12-19 20:12:20 +00:00
|
|
|
</bpmndi:BPMNShape>
|
2022-12-22 21:06:52 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_0nc8oeq_di" bpmnElement="Activity_1dhb10w">
|
2022-12-27 21:10:14 +00:00
|
|
|
<dc:Bounds x="810" y="240" width="100" height="80" />
|
2022-12-19 20:12:20 +00:00
|
|
|
<bpmndi:BPMNLabel />
|
|
|
|
</bpmndi:BPMNShape>
|
2022-12-22 21:06:52 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_0k5z9kb_di" bpmnElement="Activity_1qcx18z">
|
2022-12-27 21:10:14 +00:00
|
|
|
<dc:Bounds x="650" y="240" width="100" height="80" />
|
2022-12-19 20:12:20 +00:00
|
|
|
<bpmndi:BPMNLabel />
|
|
|
|
</bpmndi:BPMNShape>
|
2022-12-22 21:06:52 +00:00
|
|
|
<bpmndi:BPMNShape id="Gateway_1m8umui_di" bpmnElement="Gateway_1m8umui" isMarkerVisible="true">
|
2022-12-27 21:10:14 +00:00
|
|
|
<dc:Bounds x="1275" y="255" width="50" height="50" />
|
2022-12-19 20:12:20 +00:00
|
|
|
</bpmndi:BPMNShape>
|
|
|
|
<bpmndi:BPMNShape id="Event_1l2htbr_di" bpmnElement="Event_1l2htbr">
|
2022-12-27 21:10:14 +00:00
|
|
|
<dc:Bounds x="1402" y="262" width="36" height="36" />
|
2022-12-19 20:12:20 +00:00
|
|
|
</bpmndi:BPMNShape>
|
2022-12-22 21:06:52 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_10tfxp1_di" bpmnElement="Activity_0uj2dxm">
|
2022-12-27 21:10:14 +00:00
|
|
|
<dc:Bounds x="1120" y="390" width="100" height="80" />
|
2022-12-22 21:06:52 +00:00
|
|
|
<bpmndi:BPMNLabel />
|
2022-12-19 20:12:20 +00:00
|
|
|
</bpmndi:BPMNShape>
|
2022-12-22 21:06:52 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_1eluylu_di" bpmnElement="Activity_1ew2127">
|
2022-12-27 21:10:14 +00:00
|
|
|
<dc:Bounds x="1120" y="240" width="100" height="80" />
|
2022-12-19 20:12:20 +00:00
|
|
|
<bpmndi:BPMNLabel />
|
|
|
|
</bpmndi:BPMNShape>
|
2022-12-22 21:06:52 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_1hhet0q_di" bpmnElement="Activity_1vs8nu6">
|
2022-12-27 21:10:14 +00:00
|
|
|
<dc:Bounds x="1120" y="100" width="100" height="80" />
|
2022-12-19 20:12:20 +00:00
|
|
|
<bpmndi:BPMNLabel />
|
|
|
|
</bpmndi:BPMNShape>
|
2022-12-22 21:06:52 +00:00
|
|
|
<bpmndi:BPMNShape id="Gateway_19omysq_di" bpmnElement="Gateway_19omysq" isMarkerVisible="true">
|
2022-12-27 21:10:14 +00:00
|
|
|
<dc:Bounds x="975" y="255" width="50" height="50" />
|
2022-12-22 21:06:52 +00:00
|
|
|
<bpmndi:BPMNLabel>
|
2022-12-27 21:10:14 +00:00
|
|
|
<dc:Bounds x="944" y="303" width="51" height="14" />
|
2022-12-22 21:06:52 +00:00
|
|
|
</bpmndi:BPMNLabel>
|
2022-12-22 21:02:54 +00:00
|
|
|
</bpmndi:BPMNShape>
|
2022-12-27 21:10:14 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_1fvj9w0_di" bpmnElement="Activity_0at47nx">
|
|
|
|
<dc:Bounds x="490" y="240" width="100" height="80" />
|
|
|
|
</bpmndi:BPMNShape>
|
2022-12-19 20:12:20 +00:00
|
|
|
<bpmndi:BPMNEdge id="Flow_0v2e2ml_di" bpmnElement="Flow_0v2e2ml">
|
2022-12-27 21:10:14 +00:00
|
|
|
<di:waypoint x="910" y="280" />
|
|
|
|
<di:waypoint x="975" y="280" />
|
2022-12-19 20:12:20 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_1mm6uz2_di" bpmnElement="Flow_1mm6uz2">
|
2022-12-27 21:10:14 +00:00
|
|
|
<di:waypoint x="1025" y="280" />
|
|
|
|
<di:waypoint x="1120" y="280" />
|
2022-12-19 20:12:20 +00:00
|
|
|
<bpmndi:BPMNLabel>
|
2022-12-27 21:10:14 +00:00
|
|
|
<dc:Bounds x="1026" y="262" width="63" height="14" />
|
2022-12-19 20:12:20 +00:00
|
|
|
</bpmndi:BPMNLabel>
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_0s5jvgp_di" bpmnElement="Flow_0s5jvgp">
|
2022-12-27 21:10:14 +00:00
|
|
|
<di:waypoint x="1000" y="305" />
|
|
|
|
<di:waypoint x="1000" y="430" />
|
|
|
|
<di:waypoint x="1120" y="430" />
|
2022-12-19 20:12:20 +00:00
|
|
|
<bpmndi:BPMNLabel>
|
2022-12-27 21:10:14 +00:00
|
|
|
<dc:Bounds x="1042" y="413" width="31" height="14" />
|
2022-12-19 20:12:20 +00:00
|
|
|
</bpmndi:BPMNLabel>
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_08x110e_di" bpmnElement="Flow_08x110e">
|
2022-12-27 21:10:14 +00:00
|
|
|
<di:waypoint x="1000" y="255" />
|
|
|
|
<di:waypoint x="1000" y="140" />
|
|
|
|
<di:waypoint x="1120" y="140" />
|
2022-12-19 20:12:20 +00:00
|
|
|
<bpmndi:BPMNLabel>
|
2022-12-27 21:10:14 +00:00
|
|
|
<dc:Bounds x="1014" y="123" width="71" height="14" />
|
2022-12-19 20:12:20 +00:00
|
|
|
</bpmndi:BPMNLabel>
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_1etakrx_di" bpmnElement="Flow_1etakrx">
|
2022-12-27 21:10:14 +00:00
|
|
|
<di:waypoint x="1220" y="140" />
|
|
|
|
<di:waypoint x="1300" y="140" />
|
|
|
|
<di:waypoint x="1300" y="255" />
|
2022-12-19 20:12:20 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_1n2v07t_di" bpmnElement="Flow_1n2v07t">
|
2022-12-27 21:10:14 +00:00
|
|
|
<di:waypoint x="1220" y="280" />
|
|
|
|
<di:waypoint x="1275" y="280" />
|
2022-12-19 20:12:20 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_1cxxkmt_di" bpmnElement="Flow_1cxxkmt">
|
2022-12-27 21:10:14 +00:00
|
|
|
<di:waypoint x="1220" y="430" />
|
|
|
|
<di:waypoint x="1300" y="430" />
|
|
|
|
<di:waypoint x="1300" y="305" />
|
2022-12-19 20:12:20 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_0498fqn_di" bpmnElement="Flow_0498fqn">
|
2022-12-27 21:10:14 +00:00
|
|
|
<di:waypoint x="1325" y="280" />
|
|
|
|
<di:waypoint x="1402" y="280" />
|
2022-12-19 20:12:20 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_0z8y9x8_di" bpmnElement="Flow_0z8y9x8">
|
|
|
|
<di:waypoint x="278" y="280" />
|
|
|
|
<di:waypoint x="330" y="280" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_1k3j31g_di" bpmnElement="Flow_1k3j31g">
|
2022-12-27 21:10:14 +00:00
|
|
|
<di:waypoint x="750" y="280" />
|
|
|
|
<di:waypoint x="810" y="280" />
|
2022-12-22 21:02:54 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_090lxfa_di" bpmnElement="Flow_090lxfa">
|
2022-12-19 20:12:20 +00:00
|
|
|
<di:waypoint x="430" y="280" />
|
|
|
|
<di:waypoint x="490" y="280" />
|
|
|
|
</bpmndi:BPMNEdge>
|
2022-12-27 21:10:14 +00:00
|
|
|
<bpmndi:BPMNEdge id="Flow_0hflz9l_di" bpmnElement="Flow_0hflz9l">
|
|
|
|
<di:waypoint x="590" y="280" />
|
|
|
|
<di:waypoint x="650" y="280" />
|
|
|
|
</bpmndi:BPMNEdge>
|
2022-12-19 20:12:20 +00:00
|
|
|
</bpmndi:BPMNPlane>
|
|
|
|
</bpmndi:BPMNDiagram>
|
|
|
|
</bpmn:definitions>
|