136 lines
7.0 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_thies_marwitz_la3hc5a" 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_1ofwbln</bpmn:incoming>
</bpmn:endEvent>
<bpmn:parallelGateway id="Gateway_0vn3xva">
<bpmn:incoming>Flow_1wts4xi</bpmn:incoming>
<bpmn:outgoing>Flow_0kd08cq</bpmn:outgoing>
<bpmn:outgoing>Flow_0j2zuos</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:sequenceFlow id="Flow_1wts4xi" sourceRef="Activity_0qpzdpu" targetRef="Gateway_0vn3xva" />
<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:sequenceFlow id="Flow_0kd08cq" sourceRef="Gateway_0vn3xva" targetRef="Activity_0dd4xyc" />
<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:sequenceFlow id="Flow_0j2zuos" sourceRef="Gateway_0vn3xva" targetRef="Activity_14sr3d2" />
<bpmn:sequenceFlow id="Flow_1pmgeug" sourceRef="Activity_0dd4xyc" targetRef="Gateway_0jqis1i" />
<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:sequenceFlow id="Flow_1mg43gm" sourceRef="Activity_14sr3d2" targetRef="Gateway_0jqis1i" />
<bpmn:sequenceFlow id="Flow_1ofwbln" sourceRef="Gateway_0jqis1i" targetRef="EndEvent_1" />
<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>age = 28
height = 1.89
children = []
is_married = False
def function(age):
return {"age": age}</bpmn:script>
</bpmn:scriptTask>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_thies_marwitz_la3hc5a">
<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="762" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_14xsci9_di" bpmnElement="Gateway_0vn3xva">
<dc:Bounds x="165" y="152" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0fyfsxf_di" bpmnElement="Activity_0dd4xyc">
<dc:Bounds x="310" y="40" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1cpc0s5" bpmnElement="Activity_14sr3d2">
<dc:Bounds x="310" y="250" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1skzlil_di" bpmnElement="Gateway_0jqis1i">
<dc:Bounds x="515" 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: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_1wts4xi_di" bpmnElement="Flow_1wts4xi">
<di:waypoint x="40" y="177" />
<di:waypoint x="165" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0kd08cq_di" bpmnElement="Flow_0kd08cq">
<di:waypoint x="190" y="152" />
<di:waypoint x="190" y="80" />
<di:waypoint x="310" y="80" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0j2zuos_di" bpmnElement="Flow_0j2zuos">
<di:waypoint x="190" y="202" />
<di:waypoint x="190" y="290" />
<di:waypoint x="310" y="290" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1pmgeug_di" bpmnElement="Flow_1pmgeug">
<di:waypoint x="410" y="80" />
<di:waypoint x="540" y="80" />
<di:waypoint x="540" y="152" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1mg43gm_di" bpmnElement="Flow_1mg43gm">
<di:waypoint x="410" y="290" />
<di:waypoint x="540" y="290" />
<di:waypoint x="540" y="202" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ofwbln_di" bpmnElement="Flow_1ofwbln">
<di:waypoint x="565" y="177" />
<di:waypoint x="762" y="177" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>