125 lines
5.5 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="Process_json_file_as_data_store_95sczqr" 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.</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0av1k7e</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" />
<bpmn:scriptTask id="Activity_0qpzdpu" name="Example Script task">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>{{gatoraide_flavors}}</spiffworkflow:instructionsForEndUser>
<spiffworkflow:unitTests>
<spiffworkflow:unitTest id="flavor_check">
<spiffworkflow:inputJson>{ "gatoraide_flavors" :
[
{
"name": "Glacier Freeze",
"color": "#C0C0C0",
"description": "Icy, refreshing citrus flavor"
}
]
}
</spiffworkflow:inputJson>
<spiffworkflow:expectedOutputJson>{
"gatoraide_flavors": [
{
"name": "Glacier Freeze",
"color": "#C0C0C0",
"description": "Icy, refreshing citrus flavor"
}
],
"gator_select": [
{
"key": "Glacier Freeze",
"value": "Glacier Freeze"
}
],
"flavor": {
"name": "Glacier Freeze",
"color": "#C0C0C0",
"description": "Icy, refreshing citrus flavor"
}
}
</spiffworkflow:expectedOutputJson>
</spiffworkflow:unitTest>
</spiffworkflow:unitTests>
</bpmn:extensionElements>
<bpmn:incoming>Flow_17db3yp</bpmn:incoming>
<bpmn:outgoing>Flow_12pkbxb</bpmn:outgoing>
<bpmn:property id="Property_17g0h45" name="__targetRef_placeholder" />
<bpmn:dataInputAssociation id="DataInputAssociation_1gjg5yh">
<bpmn:sourceRef>DataStoreReference_0ak5gko</bpmn:sourceRef>
<bpmn:targetRef>Property_17g0h45</bpmn:targetRef>
</bpmn:dataInputAssociation>
<bpmn:script>gator_select = []
for flavor in gatoraide_flavors:
gator_select.append({
"key": flavor["name"],
"value": flavor["name"]
})
</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_0av1k7e" sourceRef="Activity_1uby4vn" targetRef="EndEvent_1" />
<bpmn:userTask id="Activity_1uby4vn" name="Select A Gatoraide">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="simple-form-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="simple-form-uischema.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_12pkbxb</bpmn:incoming>
<bpmn:outgoing>Flow_0av1k7e</bpmn:outgoing>
</bpmn:userTask>
</bpmn:process>
<bpmn:dataStore id="gatoraide_flavors" name="JSONFileDataStore" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_json_file_as_data_store_95sczqr">
<bpmndi:BPMNShape id="DataStoreReference_0ak5gko_di" bpmnElement="DataStoreReference_0ak5gko">
<dc:Bounds x="295" y="265" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="288" y="322" width="65" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1jgnl7l_di" bpmnElement="Activity_0qpzdpu">
<dc:Bounds x="270" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<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="Activity_139lnwz_di" bpmnElement="Activity_1uby4vn">
<dc:Bounds x="430" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_17db3yp_di" bpmnElement="Flow_17db3yp">
<di:waypoint x="198" y="177" />
<di:waypoint x="270" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_12pkbxb_di" bpmnElement="Flow_12pkbxb">
<di:waypoint x="370" y="177" />
<di:waypoint x="430" 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" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>