mirror of
https://github.com/sartography/demo-process-models.git
synced 2025-02-24 23:28:18 +00:00
User: dan@sartography.com clicked save for examples/2-in-depth/2-5-loops/multi-instance/multi-instance.bpmn
This commit is contained in:
parent
7bb508dcdb
commit
9dd37bfdca
@ -15,46 +15,22 @@
|
|||||||
<bpmn:sequenceFlow id="Flow_1y9syi8" sourceRef="Activity_0h4w26t" targetRef="Activity_0y9m172" />
|
<bpmn:sequenceFlow id="Flow_1y9syi8" sourceRef="Activity_0h4w26t" targetRef="Activity_0y9m172" />
|
||||||
<bpmn:scriptTask id="Activity_0qpzdpu" name="Create Dictionary">
|
<bpmn:scriptTask id="Activity_0qpzdpu" name="Create Dictionary">
|
||||||
<bpmn:extensionElements>
|
<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:
|
<spiffworkflow:instructionsForEndUser />
|
||||||
|
|
||||||
* **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:extensionElements>
|
||||||
<bpmn:incoming>Flow_17db3yp</bpmn:incoming>
|
<bpmn:incoming>Flow_17db3yp</bpmn:incoming>
|
||||||
<bpmn:outgoing>Flow_12pkbxb</bpmn:outgoing>
|
<bpmn:outgoing>Flow_12pkbxb</bpmn:outgoing>
|
||||||
<bpmn:script>composers = [
|
<bpmn:script>composers = [
|
||||||
{
|
{
|
||||||
"composer": "Johann Sebastian Bach",
|
"composer": "Johann Sebastian Bach",
|
||||||
"genre": "Baroque",
|
"genre": "Baroque"
|
||||||
"famous_works": [
|
|
||||||
"Brandenburg Concertos",
|
|
||||||
"Goldberg Variations",
|
|
||||||
"St. Matthew Passion",
|
|
||||||
"Mass in B minor"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"composer": "Ludwig van Beethoven",
|
"composer": "Ludwig van Beethoven",
|
||||||
"genre": "Classical/Romantic",
|
"genre": "Classical/Romantic"
|
||||||
"famous_works": [
|
|
||||||
"9 symphonies",
|
|
||||||
"5 piano concertos",
|
|
||||||
"Fidelio",
|
|
||||||
"Moonlight Sonata"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"composer": "Wolfgang Amadeus Mozart",
|
"composer": "Wolfgang Amadeus Mozart",
|
||||||
"genre": "Classical",
|
"genre": "Classical"
|
||||||
"famous_works": [
|
|
||||||
"The Magic Flute",
|
|
||||||
"Don Giovanni",
|
|
||||||
"Requiem",
|
|
||||||
"Piano Concerto No. 21"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]</bpmn:script>
|
]</bpmn:script>
|
||||||
</bpmn:scriptTask>
|
</bpmn:scriptTask>
|
||||||
@ -74,14 +50,19 @@ You can also change the text you are reading here by updating the *Instructions*
|
|||||||
<bpmn:loopDataInputRef>composers</bpmn:loopDataInputRef>
|
<bpmn:loopDataInputRef>composers</bpmn:loopDataInputRef>
|
||||||
<bpmn:loopDataOutputRef>composers</bpmn:loopDataOutputRef>
|
<bpmn:loopDataOutputRef>composers</bpmn:loopDataOutputRef>
|
||||||
<bpmn:inputDataItem id="c" name="c" />
|
<bpmn:inputDataItem id="c" name="c" />
|
||||||
<bpmn:outputDataItem id="c" name="c" />
|
|
||||||
</bpmn:multiInstanceLoopCharacteristics>
|
</bpmn:multiInstanceLoopCharacteristics>
|
||||||
</bpmn:userTask>
|
</bpmn:userTask>
|
||||||
<bpmn:task id="Activity_0y9m172" name="Display Composers">
|
<bpmn:sequenceFlow id="Flow_1uwondc" sourceRef="Activity_0y9m172" targetRef="EndEvent_1" />
|
||||||
|
<bpmn:manualTask id="Activity_0y9m172" name="Display Edited Composers">
|
||||||
|
<bpmn:extensionElements>
|
||||||
|
<spiffworkflow:instructionsForEndUser>{% for c in composers %}
|
||||||
|
# {{c.composer}}
|
||||||
|
## {{c.genre }}
|
||||||
|
{% endfor %}</spiffworkflow:instructionsForEndUser>
|
||||||
|
</bpmn:extensionElements>
|
||||||
<bpmn:incoming>Flow_1y9syi8</bpmn:incoming>
|
<bpmn:incoming>Flow_1y9syi8</bpmn:incoming>
|
||||||
<bpmn:outgoing>Flow_1uwondc</bpmn:outgoing>
|
<bpmn:outgoing>Flow_1uwondc</bpmn:outgoing>
|
||||||
</bpmn:task>
|
</bpmn:manualTask>
|
||||||
<bpmn:sequenceFlow id="Flow_1uwondc" sourceRef="Activity_0y9m172" targetRef="EndEvent_1" />
|
|
||||||
</bpmn:process>
|
</bpmn:process>
|
||||||
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
||||||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_multi_instance_f7w10zo">
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_multi_instance_f7w10zo">
|
||||||
@ -98,9 +79,8 @@ You can also change the text you are reading here by updating the *Instructions*
|
|||||||
<dc:Bounds x="410" y="137" width="100" height="80" />
|
<dc:Bounds x="410" y="137" width="100" height="80" />
|
||||||
<bpmndi:BPMNLabel />
|
<bpmndi:BPMNLabel />
|
||||||
</bpmndi:BPMNShape>
|
</bpmndi:BPMNShape>
|
||||||
<bpmndi:BPMNShape id="Activity_0y9m172_di" bpmnElement="Activity_0y9m172">
|
<bpmndi:BPMNShape id="Activity_0dklx73_di" bpmnElement="Activity_0y9m172">
|
||||||
<dc:Bounds x="560" y="137" width="100" height="80" />
|
<dc:Bounds x="560" y="137" width="100" height="80" />
|
||||||
<bpmndi:BPMNLabel />
|
|
||||||
</bpmndi:BPMNShape>
|
</bpmndi:BPMNShape>
|
||||||
<bpmndi:BPMNEdge id="Flow_17db3yp_di" bpmnElement="Flow_17db3yp">
|
<bpmndi:BPMNEdge id="Flow_17db3yp_di" bpmnElement="Flow_17db3yp">
|
||||||
<di:waypoint x="188" y="177" />
|
<di:waypoint x="188" y="177" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user