mirror of
https://github.com/sartography/demo-process-models.git
synced 2025-02-24 22:48:19 +00:00
98 lines
4.0 KiB
XML
98 lines
4.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" 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:error id="Error_1p88s3b" name="Error_1p88s3b" />
|
|
<bpmn:escalation id="Escalation_0dktd0s" name="Escalation_0dktd0s" />
|
|
<bpmn:process id="Process_16frwp2">
|
|
<bpmn:startEvent id="Event_0dnbb90">
|
|
<bpmn:outgoing>Flow_1xmejps</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_1xmejps" sourceRef="Event_0dnbb90" targetRef="Activity_1dk3mi6" />
|
|
<bpmn:endEvent id="Event_05dwpq7">
|
|
<bpmn:incoming>Flow_1xykhl9</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:scriptTask id="Activity_1dk3mi6" name="Simple Script Task">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:unitTests>
|
|
<spiffworkflow:unitTest id="simple_test">
|
|
<spiffworkflow:inputJson>{
|
|
"age": 52,
|
|
"height": 1.93,
|
|
"children": [
|
|
"Robert",
|
|
"Edward",
|
|
"Tadd"
|
|
],
|
|
"is_maried": true
|
|
}</spiffworkflow:inputJson>
|
|
<spiffworkflow:expectedOutputJson>{
|
|
"age": 52,
|
|
"height": 1.93,
|
|
"children": [
|
|
"Robert",
|
|
"Edward",
|
|
"Tadd"
|
|
],
|
|
"is_maried": true
|
|
}</spiffworkflow:expectedOutputJson>
|
|
</spiffworkflow:unitTest>
|
|
</spiffworkflow:unitTests>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_1xmejps</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0fxpv1y</bpmn:outgoing>
|
|
<bpmn:script>age = 51
|
|
height = 1.93
|
|
children = [ "Robert", "Edward", "Tadd"]
|
|
is_maried = True
|
|
|
|
Age=60
|
|
del(Age)
|
|
|
|
def add_one(input):
|
|
return input+1
|
|
|
|
age = add_one(age)</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
<bpmn:sequenceFlow id="Flow_0fxpv1y" sourceRef="Activity_1dk3mi6" targetRef="Activity_05o3e3a" />
|
|
<bpmn:sequenceFlow id="Flow_1xykhl9" sourceRef="Activity_05o3e3a" targetRef="Event_05dwpq7" />
|
|
<bpmn:userTask id="Activity_05o3e3a" name="Simple User Task">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:properties>
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="simple-user-task-schema.json" />
|
|
<spiffworkflow:property name="formUiSchemaFilename" value="simple-user-task-uischema.json" />
|
|
</spiffworkflow:properties>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0fxpv1y</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1xykhl9</bpmn:outgoing>
|
|
</bpmn:userTask>
|
|
</bpmn:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_16frwp2">
|
|
<bpmndi:BPMNShape id="Event_0dnbb90_di" bpmnElement="Event_0dnbb90">
|
|
<dc:Bounds x="212" y="272" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_05dwpq7_di" bpmnElement="Event_05dwpq7">
|
|
<dc:Bounds x="712" y="272" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0h7icr6_di" bpmnElement="Activity_1dk3mi6">
|
|
<dc:Bounds x="330" y="250" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1bqc4z1_di" bpmnElement="Activity_05o3e3a">
|
|
<dc:Bounds x="500" y="250" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_1xmejps_di" bpmnElement="Flow_1xmejps">
|
|
<di:waypoint x="248" y="290" />
|
|
<di:waypoint x="330" y="290" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0fxpv1y_di" bpmnElement="Flow_0fxpv1y">
|
|
<di:waypoint x="430" y="290" />
|
|
<di:waypoint x="500" y="290" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1xykhl9_di" bpmnElement="Flow_1xykhl9">
|
|
<di:waypoint x="600" y="290" />
|
|
<di:waypoint x="712" y="290" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|