User: alex clicked save for shared/enumerations/enumerations.bpmn

This commit is contained in:
demo 2022-10-24 15:20:06 +00:00
parent 8bbd8363bc
commit f2447748b7
2 changed files with 28 additions and 29 deletions

View File

@ -0,0 +1,13 @@
{
"description": "dyamodb-invoice-test",
"display_name": "dyamodb-invoice-test",
"display_order": 4,
"exception_notification_addresses": [],
"fault_or_suspend_on_exception": "fault",
"files": [],
"id": "dyamodb-invoice-test",
"is_review": false,
"primary_file_name": null,
"primary_process_id": null,
"process_group_id": "service-tests"
}

View File

@ -14,18 +14,6 @@
</spiffworkflow:instructionsForEndUser> </spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements> </bpmn:extensionElements>
</bpmn:manualTask> </bpmn:manualTask>
<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;Subject&#34;: addSubject, &#34;Value&#34;: addValue, &#34;Label&#34;: addLabel }" />
<spiffworkflow:parameter id="table_name" type="str" value="&#39;Enumeration&#39;" />
</spiffworkflow:parameters>
</spiffworkflow:serviceTaskOperator>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0322grc</bpmn:incoming>
<bpmn:outgoing>Flow_1pvx3ro</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:callActivity id="Call_Shared_Build_Enum_List_from_AWS" name="Call Shared: Build Enum List from AWS" calledElement="Shared_Build_Enum_List_from_AWS"> <bpmn:callActivity id="Call_Shared_Build_Enum_List_from_AWS" name="Call Shared: Build Enum List from AWS" calledElement="Shared_Build_Enum_List_from_AWS">
<bpmn:extensionElements> <bpmn:extensionElements>
<spiffworkflow:preScript>whichSubject = "Enumeration" <spiffworkflow:preScript>whichSubject = "Enumeration"
@ -58,7 +46,7 @@ addNew = True</spiffworkflow:preScript>
</bpmn:userTask> </bpmn:userTask>
<bpmn:scriptTask id="Activity_1ifnmsg" name="Set Subject" scriptFormat="python"> <bpmn:scriptTask id="Activity_1ifnmsg" name="Set Subject" scriptFormat="python">
<bpmn:incoming>Flow_0i6hbp9</bpmn:incoming> <bpmn:incoming>Flow_0i6hbp9</bpmn:incoming>
<bpmn:outgoing>Flow_0322grc</bpmn:outgoing> <bpmn:outgoing>Flow_1xbvsd3</bpmn:outgoing>
<bpmn:script>if whichEnum == "add": <bpmn:script>if whichEnum == "add":
addSubject = "Enumeration" addSubject = "Enumeration"
else: else:
@ -66,7 +54,6 @@ else:
addSubject = matched[0]['label'] if matched else None</bpmn:script> addSubject = matched[0]['label'] if matched else None</bpmn:script>
</bpmn:scriptTask> </bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_0d8570g" sourceRef="Activity_0bvdyir" targetRef="enumeration_user_task" /> <bpmn:sequenceFlow id="Flow_0d8570g" sourceRef="Activity_0bvdyir" targetRef="enumeration_user_task" />
<bpmn:sequenceFlow id="Flow_0322grc" sourceRef="Activity_1ifnmsg" targetRef="Activity_1cl0n43" />
<bpmn:serviceTask id="Activity_1ad6wc2" name="Get Enumeration List"> <bpmn:serviceTask id="Activity_1ad6wc2" name="Get Enumeration List">
<bpmn:extensionElements> <bpmn:extensionElements>
<spiffworkflow:serviceTaskOperator id="aws/QueryDynamoTable"> <spiffworkflow:serviceTaskOperator id="aws/QueryDynamoTable">
@ -90,14 +77,13 @@ else:
</spiffworkflow:properties> </spiffworkflow:properties>
<spiffworkflow:postScript /> <spiffworkflow:postScript />
</bpmn:extensionElements> </bpmn:extensionElements>
<bpmn:incoming>Flow_1pvx3ro</bpmn:incoming> <bpmn:incoming>Flow_0lpik93</bpmn:incoming>
<bpmn:outgoing>Flow_17i0vic</bpmn:outgoing> <bpmn:outgoing>Flow_17i0vic</bpmn:outgoing>
</bpmn:userTask> </bpmn:userTask>
<bpmn:startEvent id="Event_00b9bxo"> <bpmn:startEvent id="Event_00b9bxo">
<bpmn:outgoing>Flow_07a2oxo</bpmn:outgoing> <bpmn:outgoing>Flow_07a2oxo</bpmn:outgoing>
</bpmn:startEvent> </bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_07a2oxo" sourceRef="Event_00b9bxo" targetRef="Call_Shared_Build_Enum_List_from_AWS" /> <bpmn:sequenceFlow id="Flow_07a2oxo" sourceRef="Event_00b9bxo" targetRef="Call_Shared_Build_Enum_List_from_AWS" />
<bpmn:sequenceFlow id="Flow_1pvx3ro" sourceRef="Activity_1cl0n43" targetRef="Activity_0exwh7c" />
<bpmn:sequenceFlow id="Flow_17i0vic" sourceRef="Activity_0exwh7c" targetRef="Gateway_04hnj5e" /> <bpmn:sequenceFlow id="Flow_17i0vic" sourceRef="Activity_0exwh7c" targetRef="Gateway_04hnj5e" />
<bpmn:exclusiveGateway id="Gateway_1clgwgu" name="Add another enum for the same subject" default="Flow_1u6l44m"> <bpmn:exclusiveGateway id="Gateway_1clgwgu" name="Add another enum for the same subject" default="Flow_1u6l44m">
<bpmn:incoming>Flow_1yld5u8</bpmn:incoming> <bpmn:incoming>Flow_1yld5u8</bpmn:incoming>
@ -149,17 +135,17 @@ addLabel = ""</bpmn:script>
</spiffworkflow:parameters> </spiffworkflow:parameters>
</spiffworkflow:serviceTaskOperator> </spiffworkflow:serviceTaskOperator>
</bpmn:extensionElements> </bpmn:extensionElements>
<bpmn:incoming>Flow_1xbvsd3</bpmn:incoming>
<bpmn:outgoing>Flow_0lpik93</bpmn:outgoing>
</bpmn:serviceTask> </bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_1xbvsd3" sourceRef="Activity_1ifnmsg" targetRef="Activity_09grhpn" />
<bpmn:sequenceFlow id="Flow_0lpik93" sourceRef="Activity_09grhpn" targetRef="Activity_0exwh7c" />
</bpmn:process> </bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1"> <bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Sharred_Enumeration_Table"> <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Sharred_Enumeration_Table">
<bpmndi:BPMNShape id="Activity_1cpupwx_di" bpmnElement="Activity_18npi29"> <bpmndi:BPMNShape id="Activity_1cpupwx_di" bpmnElement="Activity_18npi29">
<dc:Bounds x="1280" y="10" width="100" height="80" /> <dc:Bounds x="1280" y="10" width="100" height="80" />
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0k89mkq_di" bpmnElement="Activity_1cl0n43">
<dc:Bounds x="790" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1i2gua9_di" bpmnElement="Call_Shared_Build_Enum_List_from_AWS"> <bpmndi:BPMNShape id="Activity_1i2gua9_di" bpmnElement="Call_Shared_Build_Enum_List_from_AWS">
<dc:Bounds x="-10" y="137" width="100" height="80" /> <dc:Bounds x="-10" y="137" width="100" height="80" />
<bpmndi:BPMNLabel /> <bpmndi:BPMNLabel />
@ -205,16 +191,12 @@ addLabel = ""</bpmn:script>
<dc:Bounds x="310" y="320" width="100" height="80" /> <dc:Bounds x="310" y="320" width="100" height="80" />
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0wrg2tu_di" bpmnElement="Activity_09grhpn"> <bpmndi:BPMNShape id="Activity_0wrg2tu_di" bpmnElement="Activity_09grhpn">
<dc:Bounds x="790" y="20" width="100" height="80" /> <dc:Bounds x="790" y="137" width="100" height="80" />
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0d8570g_di" bpmnElement="Flow_0d8570g"> <bpmndi:BPMNEdge id="Flow_0d8570g_di" bpmnElement="Flow_0d8570g">
<di:waypoint x="270" y="177" /> <di:waypoint x="270" y="177" />
<di:waypoint x="440" y="177" /> <di:waypoint x="440" y="177" />
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0322grc_di" bpmnElement="Flow_0322grc">
<di:waypoint x="710" y="177" />
<di:waypoint x="790" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0i6hbp9_di" bpmnElement="Flow_0i6hbp9"> <bpmndi:BPMNEdge id="Flow_0i6hbp9_di" bpmnElement="Flow_0i6hbp9">
<di:waypoint x="540" y="177" /> <di:waypoint x="540" y="177" />
<di:waypoint x="610" y="177" /> <di:waypoint x="610" y="177" />
@ -223,10 +205,6 @@ addLabel = ""</bpmn:script>
<di:waypoint x="-92" y="177" /> <di:waypoint x="-92" y="177" />
<di:waypoint x="-10" y="177" /> <di:waypoint x="-10" y="177" />
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1pvx3ro_di" bpmnElement="Flow_1pvx3ro">
<di:waypoint x="890" y="177" />
<di:waypoint x="960" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_17i0vic_di" bpmnElement="Flow_17i0vic"> <bpmndi:BPMNEdge id="Flow_17i0vic_di" bpmnElement="Flow_17i0vic">
<di:waypoint x="1060" y="177" /> <di:waypoint x="1060" y="177" />
<di:waypoint x="1135" y="177" /> <di:waypoint x="1135" y="177" />
@ -275,6 +253,14 @@ addLabel = ""</bpmn:script>
<di:waypoint x="310" y="360" /> <di:waypoint x="310" y="360" />
<di:waypoint x="245" y="360" /> <di:waypoint x="245" y="360" />
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1xbvsd3_di" bpmnElement="Flow_1xbvsd3">
<di:waypoint x="710" y="177" />
<di:waypoint x="790" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0lpik93_di" bpmnElement="Flow_0lpik93">
<di:waypoint x="890" y="177" />
<di:waypoint x="960" y="177" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane> </bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram> </bpmndi:BPMNDiagram>
</bpmn:definitions> </bpmn:definitions>