192 lines
9.8 KiB
Plaintext
Raw Normal View History

<?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="Sharred_Enumeration_Table" name="Sharred: Enumeration Table" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_0q0h9tc</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_0q0h9tc" sourceRef="StartEvent_1" targetRef="Activity_0kxf2qc" />
<bpmn:endEvent id="Event_0fdez0y">
<bpmn:incoming>Flow_1igx0a1</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_0t80m1i" sourceRef="enumeration_user_task" targetRef="Activity_1cl0n43" />
<bpmn:sequenceFlow id="Flow_1igx0a1" sourceRef="Activity_18npi29" targetRef="Event_0fdez0y" />
<bpmn:manualTask id="Activity_18npi29" name="Show Records">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>Enumerations:
-----------------
| value | label |
|-----|------|
{% for enumeration in enumerations.Items %}
| {{value}} | {{label}} |
{% endfor %}
</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_03owp8l</bpmn:incoming>
<bpmn:outgoing>Flow_1igx0a1</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:userTask id="enumeration_user_task" name="Which Enumeration">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="enumeration-JSONSchema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="enumeration-UISchema.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1p5fxob</bpmn:incoming>
<bpmn:outgoing>Flow_0t80m1i</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_1sjh867" sourceRef="Activity_1cl0n43" targetRef="Activity_1slo4pb" />
<bpmn:serviceTask id="Activity_1cl0n43" name="Add Record">
<bpmn:extensionElements>
<spiffworkflow:serviceTaskOperator id="aws/AddDynamoItem" resultVariable="enumerationsAdd">
<spiffworkflow:parameters>
<spiffworkflow:parameter id="item_data" type="str" value="{ &#34;value&#34;: value, &#34;label&#34;: label }" />
<spiffworkflow:parameter id="table_name" type="str" value="&#39;Enumeration&#39;" />
</spiffworkflow:parameters>
</spiffworkflow:serviceTaskOperator>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0t80m1i</bpmn:incoming>
<bpmn:outgoing>Flow_1sjh867</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_03owp8l" sourceRef="Activity_1slo4pb" targetRef="Activity_18npi29" />
<bpmn:serviceTask id="Activity_1slo4pb" name="Get Records">
<bpmn:extensionElements>
<spiffworkflow:serviceTaskOperator id="aws/ScanDynamoTable" resultVariable="enumerations">
<spiffworkflow:parameters>
<spiffworkflow:parameter id="table_name" type="str" value="&#39;Enumeration&#39;" />
</spiffworkflow:parameters>
</spiffworkflow:serviceTaskOperator>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1sjh867</bpmn:incoming>
<bpmn:outgoing>Flow_03owp8l</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_07p4s89" sourceRef="Activity_0kxf2qc" targetRef="Activity_0jukk21" />
<bpmn:subProcess id="Activity_0kxf2qc" name="Get AWS Enumeration List">
<bpmn:incoming>Flow_0q0h9tc</bpmn:incoming>
<bpmn:outgoing>Flow_07p4s89</bpmn:outgoing>
<bpmn:startEvent id="Event_0eqswxf">
<bpmn:outgoing>Flow_1jzrkzh</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:serviceTask id="Activity_0lbriwb" name="Get Records">
<bpmn:extensionElements>
<spiffworkflow:serviceTaskOperator id="aws/ScanDynamoTable" resultVariable="enumerations">
<spiffworkflow:parameters>
<spiffworkflow:parameter id="table_name" type="str" value="&#39;Enumeration&#39;" />
</spiffworkflow:parameters>
</spiffworkflow:serviceTaskOperator>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1jzrkzh</bpmn:incoming>
<bpmn:outgoing>Flow_11gy235</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_1jzrkzh" sourceRef="Event_0eqswxf" targetRef="Activity_0lbriwb" />
<bpmn:endEvent id="Event_1hbs784">
<bpmn:incoming>Flow_1tusvld</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_11gy235" sourceRef="Activity_0lbriwb" targetRef="Activity_0rtheg2" />
<bpmn:sequenceFlow id="Flow_1tusvld" sourceRef="Activity_0rtheg2" targetRef="Event_1hbs784" />
<bpmn:scriptTask id="Activity_0rtheg2" name="Build Enumeration List">
<bpmn:incoming>Flow_11gy235</bpmn:incoming>
<bpmn:outgoing>Flow_1tusvld</bpmn:outgoing>
<bpmn:script># Build Enumeration List
enumerations_items_list = []
enumerations_items_list.append({'label': 'Add New', 'value': 'add'})
enumerations_items_list.append(enumerations["Items"])</bpmn:script>
</bpmn:scriptTask>
</bpmn:subProcess>
<bpmn:sequenceFlow id="Flow_1p5fxob" sourceRef="Activity_0jukk21" targetRef="enumeration_user_task" />
<bpmn:callActivity id="Activity_0jukk21" name="Call Build Enum List from AWS">
<bpmn:incoming>Flow_07p4s89</bpmn:incoming>
<bpmn:outgoing>Flow_1p5fxob</bpmn:outgoing>
</bpmn:callActivity>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Sharred_Enumeration_Table">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="-278" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0fdez0y_di" bpmnElement="Event_0fdez0y">
<dc:Bounds x="832" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1cpupwx_di" bpmnElement="Activity_18npi29">
<dc:Bounds x="680" y="137" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0nciy2q_di" bpmnElement="enumeration_user_task">
<dc:Bounds x="180" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0k89mkq_di" bpmnElement="Activity_1cl0n43">
<dc:Bounds x="350" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1fe77xz_di" bpmnElement="Activity_1slo4pb">
<dc:Bounds x="520" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1i2gua9_di" bpmnElement="Activity_0jukk21">
<dc:Bounds x="-10" y="137" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0arvduy_di" bpmnElement="Activity_0kxf2qc">
<dc:Bounds x="-180" y="137" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0q0h9tc_di" bpmnElement="Flow_0q0h9tc">
<di:waypoint x="-242" y="177" />
<di:waypoint x="-180" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0t80m1i_di" bpmnElement="Flow_0t80m1i">
<di:waypoint x="280" y="177" />
<di:waypoint x="350" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1igx0a1_di" bpmnElement="Flow_1igx0a1">
<di:waypoint x="780" y="177" />
<di:waypoint x="832" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1sjh867_di" bpmnElement="Flow_1sjh867">
<di:waypoint x="450" y="177" />
<di:waypoint x="520" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_03owp8l_di" bpmnElement="Flow_03owp8l">
<di:waypoint x="620" y="177" />
<di:waypoint x="680" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_07p4s89_di" bpmnElement="Flow_07p4s89">
<di:waypoint x="-80" y="177" />
<di:waypoint x="-10" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1p5fxob_di" bpmnElement="Flow_1p5fxob">
<di:waypoint x="90" y="177" />
<di:waypoint x="180" y="177" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
<bpmndi:BPMNDiagram id="BPMNDiagram_17vui1d">
<bpmndi:BPMNPlane id="BPMNPlane_116wnmy" bpmnElement="Activity_0kxf2qc">
<bpmndi:BPMNShape id="Event_0eqswxf_di" bpmnElement="Event_0eqswxf">
<dc:Bounds x="272" y="222" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_010rvtp" bpmnElement="Activity_0lbriwb">
<dc:Bounds x="380" y="200" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1hbs784_di" bpmnElement="Event_1hbs784">
<dc:Bounds x="732" y="222" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_107skvn_di" bpmnElement="Activity_0rtheg2">
<dc:Bounds x="550" y="200" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1jzrkzh_di" bpmnElement="Flow_1jzrkzh">
<di:waypoint x="308" y="240" />
<di:waypoint x="380" y="240" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_11gy235_di" bpmnElement="Flow_11gy235">
<di:waypoint x="480" y="240" />
<di:waypoint x="550" y="240" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1tusvld_di" bpmnElement="Flow_1tusvld">
<di:waypoint x="650" y="240" />
<di:waypoint x="732" y="240" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>