2024-02-21 02:52:41 +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="Process_multi_instance_f7w10zo" 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>
2024-02-21 03:00:13 +00:00
<bpmn:incoming>Flow_1y9syi8</bpmn:incoming>
2024-02-21 02:52:41 +00:00
</bpmn:endEvent>
2024-02-21 03:00:13 +00:00
<bpmn:sequenceFlow id="Flow_12pkbxb" sourceRef="Activity_0qpzdpu" targetRef="Activity_0h4w26t" />
<bpmn:sequenceFlow id="Flow_1y9syi8" sourceRef="Activity_0h4w26t" targetRef="EndEvent_1" />
<bpmn:scriptTask id="Activity_0qpzdpu" name="Create Dictionary">
2024-02-21 02:52:41 +00:00
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>This is an example **Manual Task**. A **Manual Task** is designed to allow someone to complete a task outside of the system and then report back that it is complete. You can click the *Continue* button to proceed. When you are done running this process, you can edit the **Process Model** to include a:
* **Script Task** - write a short snippet of python code to update some data
* **User Task** - generate a form that collects information from a user
* **Service Task** - communicate with an external API to fetch or update some data.
You can also change the text you are reading here by updating the *Instructions* on this example manual task.</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_17db3yp</bpmn:incoming>
<bpmn:outgoing>Flow_12pkbxb</bpmn:outgoing>
2024-02-21 03:00:13 +00:00
<bpmn:script>composers = [
{
"composer": "Johann Sebastian Bach",
"genre": "Baroque",
"famous_works": [
"Brandenburg Concertos",
"Goldberg Variations",
"St. Matthew Passion",
"Mass in B minor"
]
},
{
"composer": "Ludwig van Beethoven",
"genre": "Classical/Romantic",
"famous_works": [
"9 symphonies",
"5 piano concertos",
"Fidelio",
"Moonlight Sonata"
]
},
{
"composer": "Wolfgang Amadeus Mozart",
"genre": "Classical",
"famous_works": [
"The Magic Flute",
"Don Giovanni",
"Requiem",
"Piano Concerto No. 21"
]
}
]</bpmn:script>
</bpmn:scriptTask>
<bpmn:manualTask id="Activity_0h4w26t" name="Show Composer">
<bpmn:extensionElements>
2024-02-21 03:02:15 +00:00
<spiffworkflow:instructionsForEndUser># {{c.composer}}
## Genre: {{c.genre}}
2024-02-21 03:00:13 +00:00
## Famous Works:
2024-02-21 03:02:15 +00:00
{% for work in c.famous_works %}
2024-02-21 03:00:13 +00:00
* {{work}}
{% endfor %}</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_12pkbxb</bpmn:incoming>
<bpmn:outgoing>Flow_1y9syi8</bpmn:outgoing>
<bpmn:multiInstanceLoopCharacteristics isSequential="true">
<bpmn:loopDataInputRef>composers</bpmn:loopDataInputRef>
2024-02-21 03:02:15 +00:00
<bpmn:inputDataItem id="c" name="c" />
2024-02-21 03:00:13 +00:00
</bpmn:multiInstanceLoopCharacteristics>
2024-02-21 02:52:41 +00:00
</bpmn:manualTask>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_multi_instance_f7w10zo">
2024-02-21 03:02:15 +00:00
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="152" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
2024-02-21 02:52:41 +00:00
<bpmndi:BPMNShape id="Event_14za570_di" bpmnElement="EndEvent_1">
2024-02-21 03:00:13 +00:00
<dc:Bounds x="572" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0mx090y_di" bpmnElement="Activity_0qpzdpu">
<dc:Bounds x="250" y="137" width="100" height="80" />
2024-02-21 02:52:41 +00:00
</bpmndi:BPMNShape>
2024-02-21 03:00:13 +00:00
<bpmndi:BPMNShape id="Activity_016wj9v_di" bpmnElement="Activity_0h4w26t">
<dc:Bounds x="410" y="137" width="100" height="80" />
2024-02-21 02:52:41 +00:00
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_17db3yp_di" bpmnElement="Flow_17db3yp">
2024-02-21 03:00:13 +00:00
<di:waypoint x="188" y="177" />
<di:waypoint x="250" y="177" />
2024-02-21 02:52:41 +00:00
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_12pkbxb_di" bpmnElement="Flow_12pkbxb">
2024-02-21 03:00:13 +00:00
<di:waypoint x="350" y="177" />
<di:waypoint x="410" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1y9syi8_di" bpmnElement="Flow_1y9syi8">
<di:waypoint x="510" y="177" />
<di:waypoint x="572" y="177" />
2024-02-21 02:52:41 +00:00
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>