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="create_viking_user_task" />
|
|
|
|
<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_0q0h9tc</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">
|
|
|
|
<spiffworkflow:parameters>
|
|
|
|
<spiffworkflow:parameter id="item_data" type="str" value="{ "Name": Name, "BirthDate": BirthDate, "Details":Details}" />
|
|
|
|
<spiffworkflow:parameter id="table_name" type="str" value="'Viking'" />
|
|
|
|
</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="'Viking'" />
|
|
|
|
</spiffworkflow:parameters>
|
|
|
|
</spiffworkflow:serviceTaskOperator>
|
|
|
|
</bpmn:extensionElements>
|
|
|
|
<bpmn:incoming>Flow_1sjh867</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_03owp8l</bpmn:outgoing>
|
|
|
|
</bpmn:serviceTask>
|
|
|
|
</bpmn:process>
|
|
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Proccess_owwjd82">
|
|
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
|
|
<dc:Bounds x="-78" y="159" width="36" height="36" />
|
|
|
|
</bpmndi:BPMNShape>
|
|
|
|
<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_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">
|
2022-10-18 23:40:56 +00:00
|
|
|
<dc:Bounds x="350" y="137" width="100" height="80" />
|
2022-10-12 20:09:45 +00:00
|
|
|
<bpmndi:BPMNLabel />
|
|
|
|
</bpmndi:BPMNShape>
|
2022-10-18 23:40:56 +00:00
|
|
|
<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:BPMNEdge id="Flow_0q0h9tc_di" bpmnElement="Flow_0q0h9tc">
|
|
|
|
<di:waypoint x="-42" y="177" />
|
|
|
|
<di:waypoint x="10" y="177" />
|
|
|
|
</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">
|
2022-10-18 23:40:56 +00:00
|
|
|
<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" />
|
2022-10-18 23:40:56 +00:00
|
|
|
<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">
|
2022-10-18 23:40:56 +00:00
|
|
|
<di:waypoint x="450" y="177" />
|
|
|
|
<di:waypoint x="510" y="177" />
|
2022-10-12 20:09:45 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
</bpmndi:BPMNPlane>
|
|
|
|
</bpmndi:BPMNDiagram>
|
|
|
|
</bpmn:definitions>
|