2022-03-04 16:28:42 -05: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:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_507ba7d" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.2.0">
|
|
|
|
<bpmn:process id="Process_507ba7d" isExecutable="true">
|
|
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
|
|
<bpmn:outgoing>Flow_14snzg4</bpmn:outgoing>
|
|
|
|
</bpmn:startEvent>
|
|
|
|
<bpmn:sequenceFlow id="Flow_14snzg4" sourceRef="StartEvent_1" targetRef="Activity_GetAssocRole" />
|
|
|
|
<bpmn:scriptTask id="Activity_GetAssociates" name="Get Associates">
|
|
|
|
<bpmn:incoming>Flow_0h4fy1y</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_1n8quj6</bpmn:outgoing>
|
|
|
|
<bpmn:script># Get List of Associates
|
|
|
|
assoc_list = get_study_associates()
|
|
|
|
|
|
|
|
# Get Associates by Role
|
|
|
|
# Roles: "Primary Investigator", "Department Chair", "Study Coordinator I", "Study Coordinator II", "IRB Coordinator", "Department Contact", "Sub Investigator", "Additional Study Coordinators"
|
|
|
|
# assoc_role = "Primary Investigator"
|
|
|
|
if assoc_role_enum == 'pi':
|
|
|
|
assoc_role = "Primary Investigator"
|
|
|
|
elif assoc_role_enum == 'dc':
|
|
|
|
assoc_role = "Department Chair"
|
|
|
|
elif assoc_role_enum == 'sc_i':
|
|
|
|
assoc_role = 'Study Coordinator I'
|
|
|
|
|
|
|
|
# Set PI Status initially to "Not Found"
|
|
|
|
# Update later to "Found" or "New", if appropriate
|
|
|
|
assoc_info = None
|
|
|
|
assoc_status = "Not Found"
|
|
|
|
assoc_cid = ""
|
|
|
|
|
|
|
|
for assoc in assoc_list:
|
|
|
|
if assoc["role"] == assoc_role:
|
|
|
|
assoc_info = assoc
|
|
|
|
assoc_status = "Found"
|
|
|
|
assoc_cid = assoc_info["uid"]
|
2022-04-13 18:07:13 -04:00
|
|
|
if assoc_cid != data_store_get(type='study', key="sdsPI_ComputingID", value=False):
|
2022-03-04 16:28:42 -05:00
|
|
|
assoc_status = "New"
|
|
|
|
</bpmn:script>
|
|
|
|
</bpmn:scriptTask>
|
|
|
|
<bpmn:sequenceFlow id="Flow_1n8quj6" sourceRef="Activity_GetAssociates" targetRef="Activity_DisplayAssociates" />
|
|
|
|
<bpmn:endEvent id="Event_045dwkc">
|
|
|
|
<bpmn:incoming>Flow_0ok145v</bpmn:incoming>
|
|
|
|
</bpmn:endEvent>
|
|
|
|
<bpmn:sequenceFlow id="Flow_0ok145v" sourceRef="Activity_DisplayAssociates" targetRef="Event_045dwkc" />
|
|
|
|
<bpmn:manualTask id="Activity_DisplayAssociates" name="Display Associates">
|
|
|
|
<bpmn:documentation>## Associates
|
|
|
|
|
|
|
|
{{ assoc_list }}
|
|
|
|
|
|
|
|
|
|
|
|
## Assoc Role
|
|
|
|
{{ assoc_role }}
|
|
|
|
|
|
|
|
|
|
|
|
## Assoc Status
|
|
|
|
{{ assoc_status }}
|
|
|
|
|
|
|
|
|
|
|
|
## Assoc Info
|
|
|
|
{{ assoc_info }}</bpmn:documentation>
|
|
|
|
<bpmn:incoming>Flow_1n8quj6</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_0ok145v</bpmn:outgoing>
|
|
|
|
</bpmn:manualTask>
|
|
|
|
<bpmn:sequenceFlow id="Flow_0h4fy1y" sourceRef="Activity_GetAssocRole" targetRef="Activity_GetAssociates" />
|
|
|
|
<bpmn:userTask id="Activity_GetAssocRole" name="Get Assoc Role" camunda:formKey="AssocForm">
|
|
|
|
<bpmn:extensionElements>
|
|
|
|
<camunda:formData>
|
|
|
|
<camunda:formField id="assoc_role_enum" label="'Associate Role'" type="enum">
|
|
|
|
<camunda:validation>
|
|
|
|
<camunda:constraint name="required" config="True" />
|
|
|
|
</camunda:validation>
|
|
|
|
<camunda:value id="pi" name="'Primary Investigator'" />
|
|
|
|
<camunda:value id="dc" name="'Department Chair'" />
|
|
|
|
<camunda:value id="sc_i" name="'Study Coordinator I'" />
|
|
|
|
</camunda:formField>
|
|
|
|
</camunda:formData>
|
|
|
|
</bpmn:extensionElements>
|
|
|
|
<bpmn:incoming>Flow_14snzg4</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_0h4fy1y</bpmn:outgoing>
|
|
|
|
</bpmn:userTask>
|
|
|
|
</bpmn:process>
|
|
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_507ba7d">
|
|
|
|
<bpmndi:BPMNEdge id="Flow_14snzg4_di" bpmnElement="Flow_14snzg4">
|
|
|
|
<di:waypoint x="215" y="117" />
|
|
|
|
<di:waypoint x="270" y="117" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_0h4fy1y_di" bpmnElement="Flow_0h4fy1y">
|
|
|
|
<di:waypoint x="370" y="117" />
|
|
|
|
<di:waypoint x="430" y="117" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_1n8quj6_di" bpmnElement="Flow_1n8quj6">
|
|
|
|
<di:waypoint x="530" y="117" />
|
|
|
|
<di:waypoint x="590" y="117" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_0ok145v_di" bpmnElement="Flow_0ok145v">
|
|
|
|
<di:waypoint x="690" y="117" />
|
|
|
|
<di:waypoint x="752" 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_1qxoqjy_di" bpmnElement="Activity_GetAssociates">
|
|
|
|
<dc:Bounds x="430" y="77" width="100" height="80" />
|
|
|
|
</bpmndi:BPMNShape>
|
|
|
|
<bpmndi:BPMNShape id="Event_045dwkc_di" bpmnElement="Event_045dwkc">
|
|
|
|
<dc:Bounds x="752" y="99" width="36" height="36" />
|
|
|
|
</bpmndi:BPMNShape>
|
|
|
|
<bpmndi:BPMNShape id="Activity_0tm3f8v_di" bpmnElement="Activity_DisplayAssociates">
|
|
|
|
<dc:Bounds x="590" y="77" width="100" height="80" />
|
|
|
|
</bpmndi:BPMNShape>
|
|
|
|
<bpmndi:BPMNShape id="Activity_1e65teg_di" bpmnElement="Activity_GetAssocRole">
|
|
|
|
<dc:Bounds x="270" y="77" width="100" height="80" />
|
|
|
|
</bpmndi:BPMNShape>
|
|
|
|
</bpmndi:BPMNPlane>
|
|
|
|
</bpmndi:BPMNDiagram>
|
|
|
|
</bpmn:definitions>
|