sample-process-models/service-tests/aws-test/aws_test.bpmn

157 lines
7.6 KiB
Plaintext
Raw Normal View History

2022-10-12 20:09:45 +00: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: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="Proccess_owwjd82" 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_0fokswc" />
2022-10-12 20:09:45 +00:00
<bpmn:endEvent id="Event_0fdez0y">
<bpmn:incoming>Flow_1igx0a1</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_0t80m1i" sourceRef="create_viking_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>Viking List:
-----------------
|Name |DOB| Details|
|-----|--------|------|
{% for viking in vikings.Items %}
|{{viking.Name}}|{{viking.BirthDate}}|{{viking.Details}} |
{% endfor %}
</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_03owp8l</bpmn:incoming>
<bpmn:outgoing>Flow_1igx0a1</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:userTask id="create_viking_user_task" name="Create Viking">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="viking.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="schema.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1xwxb1b</bpmn:incoming>
2022-10-12 20:09:45 +00:00
<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">
<spiffworkflow:parameters>
<spiffworkflow:parameter id="item_data" type="str" value="{ &#34;Name&#34;: Name, &#34;BirthDate&#34;: BirthDate, &#34;Details&#34;:Details}" />
<spiffworkflow:parameter id="table_name" type="str" value="&#39;Viking&#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="vikings">
<spiffworkflow:parameters>
<spiffworkflow:parameter id="table_name" type="str" value="&#39;Viking&#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_0xvj5i2" sourceRef="Activity_0fokswc" targetRef="Activity_16ko4i4" />
<bpmn:serviceTask id="Activity_0fokswc" name="Run Query">
<bpmn:extensionElements>
<spiffworkflow:serviceTaskOperator id="aws/QueryDynamoTable" resultVariable="vikings">
<spiffworkflow:parameters>
<spiffworkflow:parameter id="key" type="str" value="&#39;Eirk&#39;" />
<spiffworkflow:parameter id="table_name" type="str" value="&#39;Viking&#39;" />
</spiffworkflow:parameters>
</spiffworkflow:serviceTaskOperator>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0q0h9tc</bpmn:incoming>
<bpmn:outgoing>Flow_0xvj5i2</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_1xwxb1b" sourceRef="Activity_16ko4i4" targetRef="create_viking_user_task" />
<bpmn:manualTask id="Activity_16ko4i4" name="Show Query">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>Viking Query Results:
-----------------
|Name |DOB| Details|
|-----|--------|------|
{% for viking in vikings.Items %}
|{{viking.Name}}|{{viking.BirthDate}}|{{viking.Details}} |
{% endfor %}
</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0xvj5i2</bpmn:incoming>
<bpmn:outgoing>Flow_1xwxb1b</bpmn:outgoing>
</bpmn:manualTask>
2022-10-12 20:09:45 +00:00
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Proccess_owwjd82">
<bpmndi:BPMNShape id="Event_0fdez0y_di" bpmnElement="Event_0fdez0y">
<dc:Bounds x="662" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1cpupwx_di" bpmnElement="Activity_18npi29">
<dc:Bounds x="510" y="137" width="100" height="80" />
</bpmndi:BPMNShape>
2022-10-12 20:09:45 +00:00
<bpmndi:BPMNShape id="Activity_0nciy2q_di" bpmnElement="create_viking_user_task">
<dc:Bounds x="10" y="137" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0k89mkq_di" bpmnElement="Activity_1cl0n43">
<dc:Bounds x="180" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1fe77xz_di" bpmnElement="Activity_1slo4pb">
<dc:Bounds x="350" y="137" width="100" height="80" />
2022-10-12 20:09:45 +00:00
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="-408" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1riqux7_di" bpmnElement="Activity_0fokswc">
<dc:Bounds x="-320" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_08enhvk_di" bpmnElement="Activity_16ko4i4">
<dc:Bounds x="-150" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
2022-10-12 20:09:45 +00:00
<bpmndi:BPMNEdge id="Flow_0q0h9tc_di" bpmnElement="Flow_0q0h9tc">
<di:waypoint x="-372" y="177" />
<di:waypoint x="-320" y="177" />
2022-10-12 20:09:45 +00:00
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0t80m1i_di" bpmnElement="Flow_0t80m1i">
<di:waypoint x="110" y="177" />
<di:waypoint x="180" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1igx0a1_di" bpmnElement="Flow_1igx0a1">
<di:waypoint x="610" y="177" />
2022-10-12 20:09:45 +00:00
<di:waypoint x="662" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1sjh867_di" bpmnElement="Flow_1sjh867">
<di:waypoint x="280" y="177" />
<di:waypoint x="350" y="177" />
2022-10-12 20:09:45 +00:00
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_03owp8l_di" bpmnElement="Flow_03owp8l">
<di:waypoint x="450" y="177" />
<di:waypoint x="510" y="177" />
2022-10-12 20:09:45 +00:00
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0xvj5i2_di" bpmnElement="Flow_0xvj5i2">
<di:waypoint x="-220" y="177" />
<di:waypoint x="-150" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1xwxb1b_di" bpmnElement="Flow_1xwxb1b">
<di:waypoint x="-50" y="177" />
<di:waypoint x="10" y="177" />
</bpmndi:BPMNEdge>
2022-10-12 20:09:45 +00:00
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>