2022-10-19 03:26:02 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2022-10-19 03:35:52 +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="3.0.0-dev">
|
2022-10-19 03:26:02 +00:00
|
|
|
<bpmn:process id="Shared_Build_Enum_List_from_AWS" name="Shared: Build Enum List from AWS" isExecutable="true">
|
|
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
|
|
<bpmn:outgoing>Flow_17dzzly</bpmn:outgoing>
|
|
|
|
</bpmn:startEvent>
|
2022-10-19 03:35:52 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_17dzzly" sourceRef="StartEvent_1" targetRef="Activity_0jnxeox" />
|
2022-10-19 03:39:57 +00:00
|
|
|
<bpmn:scriptTask id="Activity_0w26t4e" name="Build Enum List from AWS" scriptFormat="python">
|
2022-10-19 03:35:52 +00:00
|
|
|
<bpmn:incoming>Flow_1dc7oe2</bpmn:incoming>
|
2022-10-19 03:26:02 +00:00
|
|
|
<bpmn:outgoing>Flow_1lst375</bpmn:outgoing>
|
|
|
|
<bpmn:script># Build Enum List from AWS
|
2022-10-21 03:23:43 +00:00
|
|
|
enumerations_items_list = enumerations["Items"]
|
|
|
|
|
|
|
|
# Build Enum List
|
|
|
|
enumerations_items_list_cnt = enumerations["Count"]
|
|
|
|
enumerations_list = []
|
2022-10-21 03:40:13 +00:00
|
|
|
if addNew:
|
|
|
|
enumerations_list.append({'label': 'Add New', 'value': 'add'})
|
2022-10-21 03:23:43 +00:00
|
|
|
for n in range(0, enumerations_items_list_cnt):
|
|
|
|
if enumerations_items_list[n]["Subject"] == whichSubject:
|
2022-10-23 01:31:04 +00:00
|
|
|
enumerations_list.append({'label': enumerations_items_list[n]["Label"], 'value': enumerations_items_list[n]["Value"]})
|
|
|
|
|
2022-10-24 12:43:13 +00:00
|
|
|
del(enumerations)
|
2022-10-24 12:45:00 +00:00
|
|
|
del(enumerations_items_list)
|
|
|
|
del(enumerations_items_list_cnt)</bpmn:script>
|
2022-10-19 03:26:02 +00:00
|
|
|
</bpmn:scriptTask>
|
|
|
|
<bpmn:endEvent id="Event_0imyhx8">
|
|
|
|
<bpmn:incoming>Flow_1lst375</bpmn:incoming>
|
|
|
|
</bpmn:endEvent>
|
|
|
|
<bpmn:sequenceFlow id="Flow_1lst375" sourceRef="Activity_0w26t4e" targetRef="Event_0imyhx8" />
|
2022-10-19 03:35:52 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_1dc7oe2" sourceRef="Activity_0jnxeox" targetRef="Activity_0w26t4e" />
|
|
|
|
<bpmn:serviceTask id="Activity_0jnxeox" name="Scan AWS Enum Tabl;e">
|
|
|
|
<bpmn:extensionElements>
|
2022-10-19 03:54:17 +00:00
|
|
|
<spiffworkflow:serviceTaskOperator id="aws/ScanDynamoTable" resultVariable="enumerations">
|
2022-10-19 03:35:52 +00:00
|
|
|
<spiffworkflow:parameters>
|
2022-10-20 20:55:32 +00:00
|
|
|
<spiffworkflow:parameter id="table_name" type="str" value="'Enumeration'" />
|
2022-10-19 03:35:52 +00:00
|
|
|
</spiffworkflow:parameters>
|
|
|
|
</spiffworkflow:serviceTaskOperator>
|
|
|
|
</bpmn:extensionElements>
|
|
|
|
<bpmn:incoming>Flow_17dzzly</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_1dc7oe2</bpmn:outgoing>
|
|
|
|
</bpmn:serviceTask>
|
2022-10-19 03:26:02 +00:00
|
|
|
</bpmn:process>
|
|
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Shared_Build_Enum_List_from_AWS">
|
2022-10-19 03:54:17 +00:00
|
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
|
|
<dc:Bounds x="-28" y="159" width="36" height="36" />
|
2022-10-19 03:39:57 +00:00
|
|
|
</bpmndi:BPMNShape>
|
2022-10-19 03:26:02 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_1lf3qci_di" bpmnElement="Activity_0w26t4e">
|
2022-10-19 03:40:11 +00:00
|
|
|
<dc:Bounds x="240" y="137" width="100" height="80" />
|
2022-10-19 03:26:02 +00:00
|
|
|
<bpmndi:BPMNLabel />
|
|
|
|
</bpmndi:BPMNShape>
|
|
|
|
<bpmndi:BPMNShape id="Event_0imyhx8_di" bpmnElement="Event_0imyhx8">
|
2022-10-19 03:40:11 +00:00
|
|
|
<dc:Bounds x="402" y="159" width="36" height="36" />
|
2022-10-19 03:26:02 +00:00
|
|
|
</bpmndi:BPMNShape>
|
2022-10-19 03:54:17 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_0q9yh3w_di" bpmnElement="Activity_0jnxeox">
|
|
|
|
<dc:Bounds x="70" y="137" width="100" height="80" />
|
|
|
|
<bpmndi:BPMNLabel />
|
2022-10-19 03:35:52 +00:00
|
|
|
</bpmndi:BPMNShape>
|
2022-10-19 03:26:02 +00:00
|
|
|
<bpmndi:BPMNEdge id="Flow_17dzzly_di" bpmnElement="Flow_17dzzly">
|
2022-10-19 03:40:11 +00:00
|
|
|
<di:waypoint x="8" y="177" />
|
2022-10-19 03:35:52 +00:00
|
|
|
<di:waypoint x="70" y="177" />
|
2022-10-19 03:26:02 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_1lst375_di" bpmnElement="Flow_1lst375">
|
2022-10-19 03:40:11 +00:00
|
|
|
<di:waypoint x="340" y="177" />
|
|
|
|
<di:waypoint x="402" y="177" />
|
2022-10-19 03:26:02 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
2022-10-19 03:35:52 +00:00
|
|
|
<bpmndi:BPMNEdge id="Flow_1dc7oe2_di" bpmnElement="Flow_1dc7oe2">
|
|
|
|
<di:waypoint x="170" y="177" />
|
2022-10-19 03:40:11 +00:00
|
|
|
<di:waypoint x="240" y="177" />
|
2022-10-19 03:35:52 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
2022-10-19 03:26:02 +00:00
|
|
|
</bpmndi:BPMNPlane>
|
|
|
|
</bpmndi:BPMNDiagram>
|
|
|
|
</bpmn:definitions>
|