2024-07-15 10:51:00 -04:00

165 lines
7.0 KiB
XML

<?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="Write_to_Data_Store_at_Root_Level" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_17db3yp</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_17db3yp" sourceRef="StartEvent_1" targetRef="Activity_0qpzdpu" />
<bpmn:endEvent id="EndEvent_1">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>The process instance completed successfully.
**Paris**
Country: {{paris_country}}
Highlights: {{paris_highlights}}
Population: {{paris_population}}
**Eiffel Tower**
Country: {{eiffel_tower_country}}
Highlights: {{eiffel_tower_highlights}}
Latitude: {{eiffel_tower_latitude}}
Longitude: {{eiffel_tower_longitude}}
**Cape Town**
Country: {{cape_town_country}}
Highlights: {{cape_town_highlights}}
**Kyoto**
Country: {{kyoto_country}}
Highlights: {{kyoto_highlights}}
Elevation: {{kyoto_elevation}}
**Rome**
Country: {{rome_country}}
Highlights: {{rome_highlights}}</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1yjhonj</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_12pkbxb" sourceRef="Activity_0qpzdpu" targetRef="Activity_0sm554i" />
<bpmn:scriptTask id="Activity_0qpzdpu" name="Write to Datastore">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser />
</bpmn:extensionElements>
<bpmn:incoming>Flow_17db3yp</bpmn:incoming>
<bpmn:outgoing>Flow_12pkbxb</bpmn:outgoing>
<bpmn:dataOutputAssociation id="DataOutputAssociation_1f1tmye">
<bpmn:targetRef>DataStoreReference_0wrwvrh</bpmn:targetRef>
</bpmn:dataOutputAssociation>
<bpmn:script>travel_destinations = {
"Paris" : {
"country" : "France",
"highlights": "Known for iconic landmarks like the Eiffel Tower and the Louvre Museum.",
"Population" : "2.1 million"
},
"Eiffel Tower" : {
"country" : "France",
"highlights": "The Eiffel Tower is a landmark in Paris.",
"latitude" : "48.8584° N",
"longitude" : "2.2945° E"
},
"Cape Town" : {
"country" : "South Africa",
"highlights": "Offers stunning landscapes, diverse wildlife, and vibrant cultural experiences."
},
"Kyoto" : {
"country" : "Japan",
"highlights": "Renowned for its beautiful temples, traditional tea houses, and serene gardens.",
"elevation" :"971m"
},
"Rome" : {
"country" : "Italy",
"highlights": "Home to ancient ruins such as the Colosseum and the Roman Forum."
}
}</bpmn:script>
</bpmn:scriptTask>
<bpmn:dataStoreReference id="DataStoreReference_0wrwvrh" name="Travel Destinations" dataStoreRef="travel_destinations" type="kkv" />
<bpmn:sequenceFlow id="Flow_1yjhonj" sourceRef="Activity_0sm554i" targetRef="EndEvent_1" />
<bpmn:scriptTask id="Activity_0sm554i" name="Read values from Datastore">
<bpmn:incoming>Flow_12pkbxb</bpmn:incoming>
<bpmn:outgoing>Flow_1yjhonj</bpmn:outgoing>
<bpmn:property id="Property_030pryn" name="__targetRef_placeholder" />
<bpmn:dataInputAssociation id="DataInputAssociation_10l1h2h">
<bpmn:sourceRef>DataStoreReference_0wrwvrh</bpmn:sourceRef>
<bpmn:targetRef>Property_030pryn</bpmn:targetRef>
</bpmn:dataInputAssociation>
<bpmn:script>paris_country = travel_destinations("Paris", "country")
paris_highlights = travel_destinations("Paris", "highlights")
paris_population = travel_destinations("Paris", "Population")
eiffel_tower_country = travel_destinations("Eiffel Tower", "country")
eiffel_tower_highlights = travel_destinations("Eiffel Tower", "highlights")
eiffel_tower_latitude = travel_destinations("Eiffel Tower", "latitude")
eiffel_tower_longitude = travel_destinations("Eiffel Tower", "longitude")
cape_town_country = travel_destinations("Cape Town", "country")
cape_town_highlights = travel_destinations("Cape Town", "highlights")
kyoto_country = travel_destinations("Kyoto", "country")
kyoto_highlights = travel_destinations("Kyoto", "highlights")
kyoto_elevation = travel_destinations("Kyoto", "elevation")
rome_country = travel_destinations("Rome", "country")
rome_highlights = travel_destinations("Rome", "highlights")</bpmn:script>
</bpmn:scriptTask>
</bpmn:process>
<bpmn:dataStore id="travel_destinations" name="KKVDataStore" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Write_to_Data_Store_at_Root_Level">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="179" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_14za570_di" bpmnElement="EndEvent_1">
<dc:Bounds x="642" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_17ijrsb_di" bpmnElement="Activity_0qpzdpu">
<dc:Bounds x="300" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DataStoreReference_0wrwvrh_di" bpmnElement="DataStoreReference_0wrwvrh">
<dc:Bounds x="415" y="-55" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="410" y="-85" width="61" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1omtaxz_di" bpmnElement="Activity_0sm554i">
<dc:Bounds x="480" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_17db3yp_di" bpmnElement="Flow_17db3yp">
<di:waypoint x="215" y="177" />
<di:waypoint x="300" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_12pkbxb_di" bpmnElement="Flow_12pkbxb">
<di:waypoint x="400" y="177" />
<di:waypoint x="480" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DataOutputAssociation_1f1tmye_di" bpmnElement="DataOutputAssociation_1f1tmye">
<di:waypoint x="368" y="137" />
<di:waypoint x="434" y="-5" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1yjhonj_di" bpmnElement="Flow_1yjhonj">
<di:waypoint x="580" y="177" />
<di:waypoint x="642" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DataInputAssociation_10l1h2h_di" bpmnElement="DataInputAssociation_10l1h2h">
<di:waypoint x="453" y="-5" />
<di:waypoint x="525" y="137" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>