User: dan@sartography.com clicked save for examples/2-in-depth/data-stores/json-file-as-data-store/json-file-as-data-store.bpmn

This commit is contained in:
sartography-automated-committer 2024-02-23 12:22:41 +00:00
parent a3c0e323fb
commit 17ddc4f6a6

View File

@ -9,7 +9,7 @@
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>The process instance completed successfully.</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0av1k7e</bpmn:incoming>
<bpmn:incoming>Flow_0gsr5ck</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_12pkbxb" sourceRef="Activity_0qpzdpu" targetRef="Activity_1uby4vn" />
<bpmn:dataStoreReference id="DataStoreReference_0ak5gko" name="Gatoraide Flavors" dataStoreRef="gatoraide_flavors" type="json" />
@ -67,7 +67,7 @@ for flavor in gatoraide_flavors:
})
</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_0av1k7e" sourceRef="Activity_1uby4vn" targetRef="EndEvent_1" />
<bpmn:sequenceFlow id="Flow_0av1k7e" sourceRef="Activity_1uby4vn" targetRef="Activity_1tndkzk" />
<bpmn:userTask id="Activity_1uby4vn" name="Select A Gatoraide">
<bpmn:extensionElements>
<spiffworkflow:properties>
@ -78,6 +78,23 @@ for flavor in gatoraide_flavors:
<bpmn:incoming>Flow_12pkbxb</bpmn:incoming>
<bpmn:outgoing>Flow_0av1k7e</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_0gsr5ck" sourceRef="Activity_1tndkzk" targetRef="EndEvent_1" />
<bpmn:manualTask id="Activity_1tndkzk" name="View Gatoraide Selection">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>{{selected_flavor}}</spiffworkflow:instructionsForEndUser>
<spiffworkflow:preScript>for flavor in gatoraide_flavors:
if flavor["name"] === selected:
selected_flavor = flavor</spiffworkflow:preScript>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0av1k7e</bpmn:incoming>
<bpmn:outgoing>Flow_0gsr5ck</bpmn:outgoing>
<bpmn:property id="Property_08p8rvo" name="__targetRef_placeholder" />
<bpmn:dataInputAssociation id="DataInputAssociation_13yxzbt">
<bpmn:sourceRef>DataStoreReference_1wlux9z</bpmn:sourceRef>
<bpmn:targetRef>Property_08p8rvo</bpmn:targetRef>
</bpmn:dataInputAssociation>
</bpmn:manualTask>
<bpmn:dataStoreReference id="DataStoreReference_1wlux9z" name="Gatoraide Flavors" />
</bpmn:process>
<bpmn:dataStore id="gatoraide_flavors" name="JSONFileDataStore" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
@ -85,9 +102,6 @@ for flavor in gatoraide_flavors:
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="162" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_14za570_di" bpmnElement="EndEvent_1">
<dc:Bounds x="572" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DataStoreReference_0ak5gko_di" bpmnElement="DataStoreReference_0ak5gko">
<dc:Bounds x="295" y="265" width="50" height="50" />
<bpmndi:BPMNLabel>
@ -98,8 +112,21 @@ for flavor in gatoraide_flavors:
<dc:Bounds x="270" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_14za570_di" bpmnElement="EndEvent_1">
<dc:Bounds x="702" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_16zal0j_di" bpmnElement="Activity_1tndkzk">
<dc:Bounds x="570" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1lgacfa" bpmnElement="DataStoreReference_1wlux9z">
<dc:Bounds x="595" y="265" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="577" y="322" width="88" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_139lnwz_di" bpmnElement="Activity_1uby4vn">
<dc:Bounds x="430" y="137" width="100" height="80" />
<dc:Bounds x="420" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_17db3yp_di" bpmnElement="Flow_17db3yp">
@ -108,15 +135,23 @@ for flavor in gatoraide_flavors:
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_12pkbxb_di" bpmnElement="Flow_12pkbxb">
<di:waypoint x="370" y="177" />
<di:waypoint x="430" y="177" />
<di:waypoint x="420" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DataInputAssociation_1gjg5yh_di" bpmnElement="DataInputAssociation_1gjg5yh">
<di:waypoint x="320" y="265" />
<di:waypoint x="320" y="217" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0av1k7e_di" bpmnElement="Flow_0av1k7e">
<di:waypoint x="530" y="177" />
<di:waypoint x="572" y="177" />
<di:waypoint x="520" y="177" />
<di:waypoint x="570" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0gsr5ck_di" bpmnElement="Flow_0gsr5ck">
<di:waypoint x="670" y="177" />
<di:waypoint x="702" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DataInputAssociation_13yxzbt_di" bpmnElement="DataInputAssociation_13yxzbt">
<di:waypoint x="620" y="265" />
<di:waypoint x="620" y="217" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>