Modified my test workflow so it works better for testing multiple file deletions

This commit is contained in:
mike cullerton 2021-04-05 15:12:14 -04:00
parent f8428378e2
commit 70fbd49aab
1 changed files with 13 additions and 69 deletions

View File

@ -5,10 +5,9 @@
<bpmn:outgoing>Flow_1j6i6nv</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1j6i6nv" sourceRef="StartEvent_1" targetRef="Activity_WhichIRBDocument" />
<bpmn:sequenceFlow id="Flow_0oyc3ye" sourceRef="Activity_WhichIRBDocument" targetRef="Activity_CheckFileUploaded" />
<bpmn:sequenceFlow id="Flow_1rexoi9" sourceRef="Activity_DeleteIRBDocument" targetRef="Activity_CheckFileDeleted" />
<bpmn:sequenceFlow id="Flow_1rexoi9" sourceRef="Activity_DeleteIRBDocument" targetRef="Event_06rfn6m" />
<bpmn:endEvent id="Event_06rfn6m">
<bpmn:incoming>Flow_0ry4bnx</bpmn:incoming>
<bpmn:incoming>Flow_1rexoi9</bpmn:incoming>
</bpmn:endEvent>
<bpmn:userTask id="Activity_WhichIRBDocument" name="Which IRB Document" camunda:formKey="UploadIRBDoc">
<bpmn:extensionElements>
@ -17,71 +16,24 @@
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1j6i6nv</bpmn:incoming>
<bpmn:outgoing>Flow_0oyc3ye</bpmn:outgoing>
<bpmn:outgoing>SequenceFlow_1mmief6</bpmn:outgoing>
</bpmn:userTask>
<bpmn:scriptTask id="Activity_CheckFileUploaded" name="Check File Uploaded">
<bpmn:incoming>Flow_0oyc3ye</bpmn:incoming>
<bpmn:outgoing>Flow_1gpekhi</bpmn:outgoing>
<bpmn:script>uploaded = is_file_uploaded(irb_document)</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_1gpekhi" sourceRef="Activity_CheckFileUploaded" targetRef="Activity_DisplayFileUploaded" />
<bpmn:manualTask id="Activity_DisplayFileUploaded" name="Display File Uploaded">
<bpmn:documentation># Is file uploaded
uploaded: {{uploaded}}</bpmn:documentation>
<bpmn:incoming>Flow_1gpekhi</bpmn:incoming>
<bpmn:outgoing>Flow_0qyam4h</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:scriptTask id="Activity_DeleteIRBDocument" name="Delete IRB Document">
<bpmn:incoming>Flow_0qyam4h</bpmn:incoming>
<bpmn:incoming>SequenceFlow_1mmief6</bpmn:incoming>
<bpmn:outgoing>Flow_1rexoi9</bpmn:outgoing>
<bpmn:script>delete_irb_document(irb_document=irb_document)</bpmn:script>
</bpmn:scriptTask>
<bpmn:scriptTask id="Activity_CheckFileDeleted" name="Check File Deleted">
<bpmn:incoming>Flow_1rexoi9</bpmn:incoming>
<bpmn:outgoing>Flow_06hfqyd</bpmn:outgoing>
<bpmn:script>deleted = not is_file_uploaded(irb_document)</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_0qyam4h" sourceRef="Activity_DisplayFileUploaded" targetRef="Activity_DeleteIRBDocument" />
<bpmn:sequenceFlow id="Flow_06hfqyd" sourceRef="Activity_CheckFileDeleted" targetRef="Activity_DisplayFileDeleted" />
<bpmn:sequenceFlow id="Flow_0ry4bnx" sourceRef="Activity_DisplayFileDeleted" targetRef="Event_06rfn6m" />
<bpmn:manualTask id="Activity_DisplayFileDeleted" name="Display File Deleted">
<bpmn:documentation># Is file deleted
deleted: {{deleted}}</bpmn:documentation>
<bpmn:incoming>Flow_06hfqyd</bpmn:incoming>
<bpmn:outgoing>Flow_0ry4bnx</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:sequenceFlow id="SequenceFlow_1mmief6" sourceRef="Activity_WhichIRBDocument" targetRef="Activity_DeleteIRBDocument" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_44b3aca">
<bpmndi:BPMNEdge id="Flow_0oyc3ye_di" bpmnElement="Flow_0oyc3ye">
<di:waypoint x="360" y="117" />
<di:waypoint x="430" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1j6i6nv_di" bpmnElement="Flow_1j6i6nv">
<di:waypoint x="215" y="117" />
<di:waypoint x="260" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1gpekhi_di" bpmnElement="Flow_1gpekhi">
<di:waypoint x="530" y="117" />
<di:waypoint x="590" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0qyam4h_di" bpmnElement="Flow_0qyam4h">
<di:waypoint x="640" y="157" />
<di:waypoint x="640" y="220" />
<di:waypoint x="310" y="220" />
<di:waypoint x="310" y="280" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1rexoi9_di" bpmnElement="Flow_1rexoi9">
<di:waypoint x="360" y="320" />
<di:waypoint x="430" y="320" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_06hfqyd_di" bpmnElement="Flow_06hfqyd">
<di:waypoint x="530" y="320" />
<di:waypoint x="590" y="320" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0ry4bnx_di" bpmnElement="Flow_0ry4bnx">
<di:waypoint x="690" y="320" />
<di:waypoint x="742" y="320" />
<di:waypoint x="500" y="117" />
<di:waypoint x="562" y="117" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="179" y="99" width="36" height="36" />
@ -89,24 +41,16 @@ deleted: {{deleted}}</bpmn:documentation>
<bpmndi:BPMNShape id="Activity_176crcy_di" bpmnElement="Activity_WhichIRBDocument">
<dc:Bounds x="260" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0015703_di" bpmnElement="Activity_CheckFileUploaded">
<dc:Bounds x="430" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1kmb6qu_di" bpmnElement="Activity_CheckFileDeleted">
<dc:Bounds x="430" y="280" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0om2kg5_di" bpmnElement="Activity_DeleteIRBDocument">
<dc:Bounds x="260" y="280" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_11nq3xj_di" bpmnElement="Activity_DisplayFileUploaded">
<dc:Bounds x="590" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0cbkkzl_di" bpmnElement="Activity_DisplayFileDeleted">
<dc:Bounds x="590" y="280" width="100" height="80" />
<dc:Bounds x="400" y="77" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_06rfn6m_di" bpmnElement="Event_06rfn6m">
<dc:Bounds x="742" y="302" width="36" height="36" />
<dc:Bounds x="562" y="99" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_1mmief6_di" bpmnElement="SequenceFlow_1mmief6">
<di:waypoint x="360" y="117" />
<di:waypoint x="400" y="117" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>