User: igor.alperovich@matplus.eu clicked save for playground/matplus/yet-another-pm/yet-another-pm.bpmn
This commit is contained in:
parent
4aa5c51551
commit
51cf14047c
|
@ -7,5 +7,5 @@
|
|||
"fault_or_suspend_on_exception": "suspend",
|
||||
"metadata_extraction_paths": null,
|
||||
"primary_file_name": "yet-another-pm.bpmn",
|
||||
"primary_process_id": "Process_yet_another_pm_qsehp45"
|
||||
"primary_process_id": "Process_0gzau80"
|
||||
}
|
|
@ -1,230 +1,75 @@
|
|||
<?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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
|
||||
<bpmn:collaboration id="Collaboration_0eze4p9">
|
||||
<bpmn:participant id="Participant_1r0menu" processRef="Process_yet_another_pm_qsehp45" />
|
||||
<bpmn:participant id="Participant_1sezpy6" name="2. Pool" processRef="Process_0htokku" />
|
||||
<bpmn:messageFlow id="Flow_0wxv1pg" name="123 " sourceRef="Participant_1sezpy6" targetRef="Participant_1r0menu" />
|
||||
<bpmn:messageFlow id="Flow_0431ugz" sourceRef="Participant_1r0menu" targetRef="Participant_1sezpy6" />
|
||||
<bpmn:messageFlow id="Flow_0bexs58" sourceRef="Activity_0vppxjs111" targetRef="Activity_11d9a0d" />
|
||||
</bpmn:collaboration>
|
||||
<bpmn:process id="Process_yet_another_pm_qsehp45" isExecutable="true">
|
||||
<bpmn:startEvent id="StartEvent_1">
|
||||
<bpmn:outgoing>Flow_17db3yp</bpmn:outgoing>
|
||||
<bpmn:outgoing>Flow_0e7inl6</bpmn:outgoing>
|
||||
<bpmn:process id="Process_0gzau80">
|
||||
<bpmn:startEvent id="Event_1vjz6qh">
|
||||
<bpmn:outgoing>Flow_0s9r02v</bpmn:outgoing>
|
||||
</bpmn:startEvent>
|
||||
<bpmn:endEvent id="EndEvent_1">
|
||||
<bpmn:extensionElements>
|
||||
<spiffworkflow:instructionsForEndUser>The process instance completed successfully.</spiffworkflow:instructionsForEndUser>
|
||||
</bpmn:extensionElements>
|
||||
<bpmn:incoming>Flow_12pkbxb</bpmn:incoming>
|
||||
<bpmn:sequenceFlow id="Flow_0s9r02v" sourceRef="Event_1vjz6qh" targetRef="Activity_1ooc6my" />
|
||||
<bpmn:endEvent id="Event_0u1dp4v">
|
||||
<bpmn:incoming>Flow_1ntvlk6</bpmn:incoming>
|
||||
</bpmn:endEvent>
|
||||
<bpmn:parallelGateway id="Gateway_049kixv">
|
||||
<bpmn:incoming>Flow_0e7inl6</bpmn:incoming>
|
||||
<bpmn:incoming>Flow_11qretb</bpmn:incoming>
|
||||
<bpmn:incoming>Flow_1qygo10</bpmn:incoming>
|
||||
<bpmn:incoming>Flow_0s04z4g</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_09f3mxw</bpmn:outgoing>
|
||||
</bpmn:parallelGateway>
|
||||
<bpmn:startEvent id="Event_0szwvoz">
|
||||
<bpmn:outgoing>Flow_11qretb</bpmn:outgoing>
|
||||
</bpmn:startEvent>
|
||||
<bpmn:userTask id="Activity_0vppxjs111" name="123">
|
||||
<bpmn:sequenceFlow id="Flow_1ntvlk6" sourceRef="Activity_1ooc6my" targetRef="Event_0u1dp4v" />
|
||||
<bpmn:scriptTask id="Activity_1ooc6my" name="Simple script task">
|
||||
<bpmn:extensionElements>
|
||||
<spiffworkflow:preScript></spiffworkflow:preScript>
|
||||
<spiffworkflow:unitTests>
|
||||
<spiffworkflow:unitTest id="ScriptUnitTest_0p4mk8g">
|
||||
<spiffworkflow:inputJson>{"action": ["Netto", 11]}</spiffworkflow:inputJson>
|
||||
<spiffworkflow:expectedOutputJson>{
|
||||
"type": "beer",
|
||||
"price": 2,
|
||||
"druknen": false,
|
||||
"taste": [
|
||||
"crips",
|
||||
"mild",
|
||||
"bright"
|
||||
],
|
||||
"quantity": {
|
||||
"Netto": 123,
|
||||
"Akzenta": 999,
|
||||
"DM": null
|
||||
}
|
||||
}</spiffworkflow:expectedOutputJson>
|
||||
</spiffworkflow:unitTest>
|
||||
</spiffworkflow:unitTests>
|
||||
</bpmn:extensionElements>
|
||||
<bpmn:incoming>Flow_1ni8pma</bpmn:incoming>
|
||||
<bpmn:incoming>Flow_07s4cqq</bpmn:incoming>
|
||||
</bpmn:userTask>
|
||||
<bpmn:dataStoreReference id="DataStoreReference_0i5mimm" />
|
||||
<bpmn:startEvent id="Event_1fcp4fd">
|
||||
<bpmn:outgoing>Flow_1qygo10</bpmn:outgoing>
|
||||
<bpmn:timerEventDefinition id="TimerEventDefinition_0fxultj">
|
||||
<bpmn:timeCycle xsi:type="bpmn:tFormalExpression" />
|
||||
</bpmn:timerEventDefinition>
|
||||
</bpmn:startEvent>
|
||||
<bpmn:intermediateCatchEvent id="Event_1o516b0">
|
||||
<bpmn:incoming>Flow_09f3mxw</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_07s4cqq</bpmn:outgoing>
|
||||
<bpmn:timerEventDefinition id="TimerEventDefinition_1ac1xp8" />
|
||||
</bpmn:intermediateCatchEvent>
|
||||
<bpmn:subProcess id="Activity_0qpzdpu" name="Example manual task">
|
||||
<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:
|
||||
<bpmn:incoming>Flow_0s9r02v</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_1ntvlk6</bpmn:outgoing>
|
||||
<bpmn:script>#print("hello")
|
||||
type = "beer"
|
||||
size = 0.5
|
||||
price = 2
|
||||
druknen = False
|
||||
taste = ["crips", "mild", "bright"]
|
||||
|
||||
* **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.
|
||||
del(size)
|
||||
|
||||
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>
|
||||
<bpmn:outgoing>Flow_1ni8pma</bpmn:outgoing>
|
||||
<bpmn:outgoing>Flow_0s04z4g</bpmn:outgoing>
|
||||
<bpmn:startEvent id="Event_1uyw2eg">
|
||||
<bpmn:outgoing>Flow_1x2jxe1</bpmn:outgoing>
|
||||
</bpmn:startEvent>
|
||||
<bpmn:task id="Activity_04v3y19">
|
||||
<bpmn:incoming>Flow_1x2jxe1</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_032dcwg</bpmn:outgoing>
|
||||
</bpmn:task>
|
||||
<bpmn:sequenceFlow id="Flow_1x2jxe1" sourceRef="Event_1uyw2eg" targetRef="Activity_04v3y19" />
|
||||
<bpmn:endEvent id="Event_1ug4ddc">
|
||||
<bpmn:incoming>Flow_032dcwg</bpmn:incoming>
|
||||
</bpmn:endEvent>
|
||||
<bpmn:sequenceFlow id="Flow_032dcwg" sourceRef="Activity_04v3y19" targetRef="Event_1ug4ddc" />
|
||||
</bpmn:subProcess>
|
||||
<bpmn:boundaryEvent id="Event_0p8hn7m" attachedToRef="Activity_0qpzdpu">
|
||||
<bpmn:timerEventDefinition id="TimerEventDefinition_0jq3nsf" />
|
||||
</bpmn:boundaryEvent>
|
||||
<bpmn:sequenceFlow id="Flow_17db3yp" sourceRef="StartEvent_1" targetRef="Activity_0qpzdpu" />
|
||||
<bpmn:sequenceFlow id="Flow_0e7inl6" sourceRef="StartEvent_1" targetRef="Gateway_049kixv" />
|
||||
<bpmn:sequenceFlow id="Flow_12pkbxb" sourceRef="Activity_0qpzdpu" targetRef="EndEvent_1" />
|
||||
<bpmn:sequenceFlow id="Flow_11qretb" sourceRef="Event_0szwvoz" targetRef="Gateway_049kixv" />
|
||||
<bpmn:sequenceFlow id="Flow_1qygo10" sourceRef="Event_1fcp4fd" targetRef="Gateway_049kixv" />
|
||||
<bpmn:sequenceFlow id="Flow_0s04z4g" sourceRef="Activity_0qpzdpu" targetRef="Gateway_049kixv" />
|
||||
<bpmn:sequenceFlow id="Flow_09f3mxw" sourceRef="Gateway_049kixv" targetRef="Event_1o516b0" />
|
||||
<bpmn:sequenceFlow id="Flow_1ni8pma" sourceRef="Activity_0qpzdpu" targetRef="Activity_0vppxjs111" />
|
||||
<bpmn:sequenceFlow id="Flow_07s4cqq" sourceRef="Event_1o516b0" targetRef="Activity_0vppxjs111" />
|
||||
</bpmn:process>
|
||||
<bpmn:process id="Process_0htokku">
|
||||
<bpmn:task id="Activity_11d9a0d" />
|
||||
quantity = {"Netto": 123, "Akzenta": 999, "DM": None}
|
||||
|
||||
def buy(store, amount):
|
||||
quantity[store] -= amount
|
||||
|
||||
buy(action[0], action[1])</bpmn:script>
|
||||
</bpmn:scriptTask>
|
||||
</bpmn:process>
|
||||
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
||||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_0eze4p9">
|
||||
<bpmndi:BPMNShape id="Participant_1r0menu_di" bpmnElement="Participant_1r0menu" isHorizontal="true">
|
||||
<dc:Bounds x="-90" y="-320" width="860" height="600" />
|
||||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_0gzau80">
|
||||
<bpmndi:BPMNShape id="Event_1vjz6qh_di" bpmnElement="Event_1vjz6qh">
|
||||
<dc:Bounds x="252" y="162" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
||||
<dc:Bounds x="129" y="43" width="36" height="36" />
|
||||
<bpmndi:BPMNShape id="Event_0u1dp4v_di" bpmnElement="Event_0u1dp4v">
|
||||
<dc:Bounds x="492" y="162" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Event_14za570_di" bpmnElement="EndEvent_1">
|
||||
<dc:Bounds x="689" y="220" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Gateway_0lc3p0j_di" bpmnElement="Gateway_049kixv">
|
||||
<dc:Bounds x="252" y="-174" width="50" height="50" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Event_0szwvoz_di" bpmnElement="Event_0szwvoz">
|
||||
<dc:Bounds x="49" y="-287" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Activity_0cageij_di" bpmnElement="Activity_0vppxjs111">
|
||||
<dc:Bounds x="647" y="-209" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="DataStoreReference_0i5mimm_di" bpmnElement="DataStoreReference_0i5mimm">
|
||||
<dc:Bounds x="-38" y="16" width="50" height="50" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Event_0qywwn3_di" bpmnElement="Event_1fcp4fd">
|
||||
<dc:Bounds x="29" y="-187" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Event_1pjhrp1_di" bpmnElement="Event_1o516b0">
|
||||
<dc:Bounds x="369" y="-297" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Activity_0a6ycq7_di" bpmnElement="Activity_0qpzdpu">
|
||||
<dc:Bounds x="417" y="-159" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Event_1gyioao_di" bpmnElement="Event_0p8hn7m">
|
||||
<dc:Bounds x="499" y="-97" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNEdge id="Flow_17db3yp_di" bpmnElement="Flow_17db3yp">
|
||||
<di:waypoint x="147" y="43" />
|
||||
<di:waypoint x="147" y="-4" />
|
||||
<di:waypoint x="467" y="-4" />
|
||||
<di:waypoint x="467" y="-79" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_0e7inl6_di" bpmnElement="Flow_0e7inl6">
|
||||
<di:waypoint x="165" y="61" />
|
||||
<di:waypoint x="277" y="61" />
|
||||
<di:waypoint x="277" y="-124" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_12pkbxb_di" bpmnElement="Flow_12pkbxb">
|
||||
<di:waypoint x="517" y="-139" />
|
||||
<di:waypoint x="603" y="-139" />
|
||||
<di:waypoint x="437" y="221" />
|
||||
<di:waypoint x="603" y="238" />
|
||||
<di:waypoint x="689" y="238" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_11qretb_di" bpmnElement="Flow_11qretb">
|
||||
<di:waypoint x="85" y="-269" />
|
||||
<di:waypoint x="277" y="-269" />
|
||||
<di:waypoint x="277" y="-174" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_1qygo10_di" bpmnElement="Flow_1qygo10">
|
||||
<di:waypoint x="65" y="-169" />
|
||||
<di:waypoint x="169" y="-169" />
|
||||
<di:waypoint x="169" y="-149" />
|
||||
<di:waypoint x="252" y="-149" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_0s04z4g_di" bpmnElement="Flow_0s04z4g">
|
||||
<di:waypoint x="417" y="-119" />
|
||||
<di:waypoint x="360" y="-119" />
|
||||
<di:waypoint x="360" y="-149" />
|
||||
<di:waypoint x="302" y="-149" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_09f3mxw_di" bpmnElement="Flow_09f3mxw">
|
||||
<di:waypoint x="277" y="-174" />
|
||||
<di:waypoint x="277" y="-279" />
|
||||
<di:waypoint x="369" y="-279" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_1ni8pma_di" bpmnElement="Flow_1ni8pma">
|
||||
<di:waypoint x="517" y="-119" />
|
||||
<di:waypoint x="582" y="-119" />
|
||||
<di:waypoint x="582" y="-169" />
|
||||
<di:waypoint x="647" y="-169" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_07s4cqq_di" bpmnElement="Flow_07s4cqq">
|
||||
<di:waypoint x="405" y="-279" />
|
||||
<di:waypoint x="477" y="-279" />
|
||||
<di:waypoint x="477" y="-199" />
|
||||
<di:waypoint x="647" y="-199" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNShape id="Participant_1sezpy6_di" bpmnElement="Participant_1sezpy6" isHorizontal="true">
|
||||
<dc:Bounds x="40" y="330" width="600" height="250" />
|
||||
<bpmndi:BPMNShape id="Activity_0r9lspl_di" bpmnElement="Activity_1ooc6my">
|
||||
<dc:Bounds x="340" y="140" width="100" height="80" />
|
||||
<bpmndi:BPMNLabel />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Activity_11d9a0d_di" bpmnElement="Activity_11d9a0d">
|
||||
<dc:Bounds x="280" y="390" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNEdge id="Flow_0wxv1pg_di" bpmnElement="Flow_0wxv1pg">
|
||||
<di:waypoint x="221" y="330" />
|
||||
<di:waypoint x="221" y="280" />
|
||||
<bpmndi:BPMNLabel>
|
||||
<dc:Bounds x="227" y="302" width="19" height="27" />
|
||||
</bpmndi:BPMNLabel>
|
||||
<bpmndi:BPMNEdge id="Flow_0s9r02v_di" bpmnElement="Flow_0s9r02v">
|
||||
<di:waypoint x="288" y="180" />
|
||||
<di:waypoint x="340" y="180" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_0431ugz_di" bpmnElement="Flow_0431ugz">
|
||||
<di:waypoint x="707" y="280" />
|
||||
<di:waypoint x="707" y="305" />
|
||||
<di:waypoint x="620" y="305" />
|
||||
<di:waypoint x="620" y="330" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_0bexs58_di" bpmnElement="Flow_0bexs58">
|
||||
<di:waypoint x="697" y="-129" />
|
||||
<di:waypoint x="697" y="131" />
|
||||
<di:waypoint x="350" y="131" />
|
||||
<di:waypoint x="350" y="390" />
|
||||
</bpmndi:BPMNEdge>
|
||||
</bpmndi:BPMNPlane>
|
||||
</bpmndi:BPMNDiagram>
|
||||
<bpmndi:BPMNDiagram id="BPMNDiagram_0qm42uu">
|
||||
<bpmndi:BPMNPlane id="BPMNPlane_1fzaoc2" bpmnElement="Activity_0qpzdpu">
|
||||
<bpmndi:BPMNShape id="Event_1uyw2eg_di" bpmnElement="Event_1uyw2eg">
|
||||
<dc:Bounds x="292" y="222" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Activity_04v3y19_di" bpmnElement="Activity_04v3y19">
|
||||
<dc:Bounds x="560" y="240" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Event_1ug4ddc_di" bpmnElement="Event_1ug4ddc">
|
||||
<dc:Bounds x="702" y="262" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNEdge id="Flow_1x2jxe1_di" bpmnElement="Flow_1x2jxe1">
|
||||
<di:waypoint x="328" y="240" />
|
||||
<di:waypoint x="444" y="240" />
|
||||
<di:waypoint x="444" y="280" />
|
||||
<di:waypoint x="560" y="280" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_032dcwg_di" bpmnElement="Flow_032dcwg">
|
||||
<di:waypoint x="660" y="280" />
|
||||
<di:waypoint x="702" y="280" />
|
||||
<bpmndi:BPMNEdge id="Flow_1ntvlk6_di" bpmnElement="Flow_1ntvlk6">
|
||||
<di:waypoint x="440" y="180" />
|
||||
<di:waypoint x="492" y="180" />
|
||||
</bpmndi:BPMNEdge>
|
||||
</bpmndi:BPMNPlane>
|
||||
</bpmndi:BPMNDiagram>
|
||||
|
|
Loading…
Reference in New Issue