mirror of
https://github.com/sartography/demo-process-models.git
synced 2025-02-24 00:48:19 +00:00
242 lines
13 KiB
XML
242 lines
13 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:collaboration id="Collaboration_1m5pytq">
|
|
<bpmn:participant id="Participant_0h3nubv" processRef="Process_thies_marwitz_la3hc5a" />
|
|
<bpmn:participant id="Participant_0jae8w9" name="Cancel Part Information" />
|
|
</bpmn:collaboration>
|
|
<bpmn:process id="Process_thies_marwitz_la3hc5a" isExecutable="true">
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
<bpmn:outgoing>Flow_17db3yp</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_1ofwbln</bpmn:incoming>
|
|
<bpmn:incoming>Flow_1povhv3</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:parallelGateway id="Gateway_0vn3xva">
|
|
<bpmn:incoming>Flow_01ls5zu</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0kd08cq</bpmn:outgoing>
|
|
<bpmn:outgoing>Flow_0j2zuos</bpmn:outgoing>
|
|
</bpmn:parallelGateway>
|
|
<bpmn:userTask id="Activity_0dd4xyc" name="Task 1">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:properties>
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="norris-schema.json" />
|
|
</spiffworkflow:properties>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0kd08cq</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1pmgeug</bpmn:outgoing>
|
|
</bpmn:userTask>
|
|
<bpmn:userTask id="Activity_14sr3d2" name="Task 2">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:properties>
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="norris-schema.json" />
|
|
</spiffworkflow:properties>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0j2zuos</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1mg43gm</bpmn:outgoing>
|
|
</bpmn:userTask>
|
|
<bpmn:parallelGateway id="Gateway_0jqis1i">
|
|
<bpmn:incoming>Flow_1pmgeug</bpmn:incoming>
|
|
<bpmn:incoming>Flow_1mg43gm</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1ofwbln</bpmn:outgoing>
|
|
</bpmn:parallelGateway>
|
|
<bpmn:scriptTask id="Activity_0qpzdpu" name="Simple Script 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:
|
|
|
|
* **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>
|
|
<spiffworkflow:unitTests>
|
|
<spiffworkflow:unitTest id="simple_test">
|
|
<spiffworkflow:inputJson>{}</spiffworkflow:inputJson>
|
|
<spiffworkflow:expectedOutputJson>{"age": 28}</spiffworkflow:expectedOutputJson>
|
|
</spiffworkflow:unitTest>
|
|
</spiffworkflow:unitTests>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_17db3yp</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1wts4xi</bpmn:outgoing>
|
|
<bpmn:script>
|
|
def function(age):
|
|
return {"age": age+1}
|
|
|
|
initial_age = 28
|
|
age = function(initial_age)</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
<bpmn:userTask id="Activity_0sjdxa2" name="Create Part Information">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:preScript />
|
|
<spiffworkflow:properties>
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="create-part-information-schema.json" />
|
|
<spiffworkflow:property name="formUiSchemaFilename" value="create-part-information-uischema.json" />
|
|
</spiffworkflow:properties>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_1wts4xi</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0n5cj1a</bpmn:outgoing>
|
|
</bpmn:userTask>
|
|
<bpmn:serviceTask id="Activity_0mcwf1m" name="Test Service">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:serviceTaskOperator id="http/GetRequest" resultVariable="response">
|
|
<spiffworkflow:parameters>
|
|
<spiffworkflow:parameter id="url" type="str" value=""https://dog.ceo/api/breeds/image/random"" />
|
|
<spiffworkflow:parameter id="headers" type="any" />
|
|
<spiffworkflow:parameter id="params" type="any" />
|
|
<spiffworkflow:parameter id="basic_auth_username" type="str" />
|
|
<spiffworkflow:parameter id="basic_auth_password" type="str" />
|
|
</spiffworkflow:parameters>
|
|
</spiffworkflow:serviceTaskOperator>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0n5cj1a</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0cx15f4</bpmn:outgoing>
|
|
</bpmn:serviceTask>
|
|
<bpmn:manualTask id="Activity_1bihtl7" name="Manual Task">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:instructionsForEndUser># Request an URL
|
|
|
|
## response
|
|
|
|

|
|
</spiffworkflow:instructionsForEndUser>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0cx15f4</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1rxk086</bpmn:outgoing>
|
|
</bpmn:manualTask>
|
|
<bpmn:boundaryEvent id="Event_1pp6zdc" name="cancel" attachedToRef="Activity_0sjdxa2" messageRef="[object Object]">
|
|
<bpmn:outgoing>Flow_1povhv3</bpmn:outgoing>
|
|
<bpmn:messageEventDefinition id="MessageEventDefinition_07lixsk" messageRef="Message_19g7czc" />
|
|
</bpmn:boundaryEvent>
|
|
<bpmn:sequenceFlow id="Flow_17db3yp" sourceRef="StartEvent_1" targetRef="Activity_0qpzdpu" />
|
|
<bpmn:sequenceFlow id="Flow_1ofwbln" sourceRef="Gateway_0jqis1i" targetRef="EndEvent_1" />
|
|
<bpmn:sequenceFlow id="Flow_1rxk086" sourceRef="Activity_1bihtl7" targetRef="Activity_0pwltt6" />
|
|
<bpmn:sequenceFlow id="Flow_0kd08cq" sourceRef="Gateway_0vn3xva" targetRef="Activity_0dd4xyc" />
|
|
<bpmn:sequenceFlow id="Flow_0j2zuos" sourceRef="Gateway_0vn3xva" targetRef="Activity_14sr3d2" />
|
|
<bpmn:sequenceFlow id="Flow_1pmgeug" sourceRef="Activity_0dd4xyc" targetRef="Gateway_0jqis1i" />
|
|
<bpmn:sequenceFlow id="Flow_1mg43gm" sourceRef="Activity_14sr3d2" targetRef="Gateway_0jqis1i" />
|
|
<bpmn:sequenceFlow id="Flow_1wts4xi" sourceRef="Activity_0qpzdpu" targetRef="Activity_0sjdxa2" />
|
|
<bpmn:sequenceFlow id="Flow_0n5cj1a" sourceRef="Activity_0sjdxa2" targetRef="Activity_0mcwf1m" />
|
|
<bpmn:sequenceFlow id="Flow_0cx15f4" sourceRef="Activity_0mcwf1m" targetRef="Activity_1bihtl7" />
|
|
<bpmn:sequenceFlow id="Flow_1povhv3" sourceRef="Event_1pp6zdc" targetRef="EndEvent_1" />
|
|
<bpmn:sequenceFlow id="Flow_01ls5zu" sourceRef="Activity_0pwltt6" targetRef="Gateway_0vn3xva" />
|
|
<bpmn:callActivity id="Activity_0pwltt6" name="Call" calledElement="call-activity">
|
|
<bpmn:incoming>Flow_1rxk086</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_01ls5zu</bpmn:outgoing>
|
|
</bpmn:callActivity>
|
|
</bpmn:process>
|
|
<bpmn:message id="Message_19g7czc" name="cancel" />
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1m5pytq">
|
|
<bpmndi:BPMNShape id="Participant_0h3nubv_di" bpmnElement="Participant_0h3nubv" isHorizontal="true">
|
|
<dc:Bounds x="-190" y="20" width="2130" height="440" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
<dc:Bounds x="-138" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_14za570_di" bpmnElement="EndEvent_1">
|
|
<dc:Bounds x="1882" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Gateway_14xsci9_di" bpmnElement="Gateway_0vn3xva">
|
|
<dc:Bounds x="1285" y="152" width="50" height="50" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0fyfsxf_di" bpmnElement="Activity_0dd4xyc">
|
|
<dc:Bounds x="1430" y="40" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="BPMNShape_1cpc0s5" bpmnElement="Activity_14sr3d2">
|
|
<dc:Bounds x="1430" y="250" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Gateway_1skzlil_di" bpmnElement="Gateway_0jqis1i">
|
|
<dc:Bounds x="1635" y="152" width="50" height="50" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1rcf9bo_di" bpmnElement="Activity_0qpzdpu">
|
|
<dc:Bounds x="-60" y="137" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1n9gw6m_di" bpmnElement="Activity_0sjdxa2">
|
|
<dc:Bounds x="170" y="137" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0mp1gqx_di" bpmnElement="Activity_0mcwf1m">
|
|
<dc:Bounds x="460" y="137" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0a1c08x_di" bpmnElement="Activity_1bihtl7">
|
|
<dc:Bounds x="730" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1wq6shp_di" bpmnElement="Activity_0pwltt6">
|
|
<dc:Bounds x="960" y="137" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_0l77df7_di" bpmnElement="Event_1pp6zdc">
|
|
<dc:Bounds x="252" y="199" width="36" height="36" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="327" y="207" width="33" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_17db3yp_di" bpmnElement="Flow_17db3yp">
|
|
<di:waypoint x="-102" y="177" />
|
|
<di:waypoint x="-60" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1ofwbln_di" bpmnElement="Flow_1ofwbln">
|
|
<di:waypoint x="1685" y="177" />
|
|
<di:waypoint x="1882" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1rxk086_di" bpmnElement="Flow_1rxk086">
|
|
<di:waypoint x="830" y="177" />
|
|
<di:waypoint x="960" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0kd08cq_di" bpmnElement="Flow_0kd08cq">
|
|
<di:waypoint x="1310" y="152" />
|
|
<di:waypoint x="1310" y="80" />
|
|
<di:waypoint x="1430" y="80" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0j2zuos_di" bpmnElement="Flow_0j2zuos">
|
|
<di:waypoint x="1310" y="202" />
|
|
<di:waypoint x="1310" y="290" />
|
|
<di:waypoint x="1430" y="290" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1pmgeug_di" bpmnElement="Flow_1pmgeug">
|
|
<di:waypoint x="1530" y="80" />
|
|
<di:waypoint x="1660" y="80" />
|
|
<di:waypoint x="1660" y="152" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1mg43gm_di" bpmnElement="Flow_1mg43gm">
|
|
<di:waypoint x="1530" y="290" />
|
|
<di:waypoint x="1660" y="290" />
|
|
<di:waypoint x="1660" y="202" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1wts4xi_di" bpmnElement="Flow_1wts4xi">
|
|
<di:waypoint x="40" y="177" />
|
|
<di:waypoint x="170" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0n5cj1a_di" bpmnElement="Flow_0n5cj1a">
|
|
<di:waypoint x="270" y="177" />
|
|
<di:waypoint x="460" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0cx15f4_di" bpmnElement="Flow_0cx15f4">
|
|
<di:waypoint x="560" y="177" />
|
|
<di:waypoint x="730" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1povhv3_di" bpmnElement="Flow_1povhv3">
|
|
<di:waypoint x="270" y="235" />
|
|
<di:waypoint x="270" y="400" />
|
|
<di:waypoint x="1900" y="400" />
|
|
<di:waypoint x="1900" y="195" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_01ls5zu_di" bpmnElement="Flow_01ls5zu">
|
|
<di:waypoint x="1060" y="177" />
|
|
<di:waypoint x="1285" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNShape id="Participant_1gv770p_di" bpmnElement="Participant_0jae8w9" isHorizontal="true">
|
|
<dc:Bounds x="-200" y="-110" width="2130" height="60" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|