mirror of
https://github.com/sartography/demo-process-models.git
synced 2025-02-25 00:18:06 +00:00
112 lines
3.8 KiB
XML
112 lines
3.8 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_dan_funk_5t3nhn3" isExecutable="true">
|
|
<bpmn:dataObjectReference id="DataObjectReference_09r1zzv" dataObjectRef="DataObject_0pux1ma" />
|
|
<bpmn:dataObjectReference id="DataObjectReference_0nby41g" dataObjectRef="DataObject_0pux1ma" />
|
|
<bpmn:startEvent id="Event_1fuga7w">
|
|
<bpmn:outgoing>Flow_0szh8pc</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_0szh8pc" sourceRef="Event_1fuga7w" targetRef="Activity_00tgyxo" />
|
|
<bpmn:endEvent id="Event_1r7u3r3">
|
|
<bpmn:incoming>Flow_0vqof4u</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="Flow_0vqof4u" sourceRef="Activity_00tgyxo" targetRef="Event_1r7u3r3" />
|
|
<bpmn:scriptTask id="Activity_00tgyxo" name="Simple Script Task">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:unitTests>
|
|
<spiffworkflow:unitTest id="simple_test">
|
|
<spiffworkflow:inputJson>{}</spiffworkflow:inputJson>
|
|
<spiffworkflow:expectedOutputJson>{
|
|
"age": 55,
|
|
"height": 1.93,
|
|
"children": [
|
|
"Robert",
|
|
"Edward",
|
|
"Willie",
|
|
"Tadd"
|
|
],
|
|
"is_married": true,
|
|
"cabinet": {
|
|
"Secretary of State": {
|
|
"name": "William H. Seward",
|
|
"age": 60,
|
|
"children": [
|
|
"William Jr.",
|
|
"Frederick",
|
|
"Augustus",
|
|
"Anna"
|
|
]
|
|
}
|
|
},
|
|
"seward": "William H. Seward"
|
|
}</spiffworkflow:expectedOutputJson>
|
|
</spiffworkflow:unitTest>
|
|
</spiffworkflow:unitTests>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0szh8pc</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0vqof4u</bpmn:outgoing>
|
|
<bpmn:script>age = 51
|
|
height = 1.93
|
|
children = ["Robert", "Edward", "Willie", "Tadd"]
|
|
is_married = True
|
|
|
|
Age = 60
|
|
age = 54
|
|
|
|
del(Age)
|
|
|
|
cabinet = {
|
|
"Secretary of State": "William H. Seward",
|
|
"Secretary of the Treasury": "Salmon P. Chase",
|
|
"Secretary of War": "Edwin M. Stanton",
|
|
"Attorney General": "Edward Bates"
|
|
}
|
|
|
|
seward = cabinet['Secretary of State']
|
|
|
|
cabinet = {
|
|
"Secretary of State": {
|
|
"name": "William H. Seward",
|
|
"age": 60,
|
|
"children": ['William Jr.', 'Frederick', 'Augustus', 'Anna']
|
|
}
|
|
}
|
|
|
|
def add_one(input):
|
|
return input + 1
|
|
|
|
age = add_one(age)
|
|
|
|
|
|
my_name = "Dan Funk"
|
|
x = "don't do this"
|
|
fn = "Dan"
|
|
first_name = "Dan"
|
|
|
|
</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
</bpmn:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_dan_funk_5t3nhn3">
|
|
<bpmndi:BPMNShape id="Event_1fuga7w_di" bpmnElement="Event_1fuga7w">
|
|
<dc:Bounds x="-398" y="72" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_1r7u3r3_di" bpmnElement="Event_1r7u3r3">
|
|
<dc:Bounds x="-158" y="72" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_003fg1c_di" bpmnElement="Activity_00tgyxo">
|
|
<dc:Bounds x="-310" y="50" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_0szh8pc_di" bpmnElement="Flow_0szh8pc">
|
|
<di:waypoint x="-362" y="90" />
|
|
<di:waypoint x="-310" y="90" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0vqof4u_di" bpmnElement="Flow_0vqof4u">
|
|
<di:waypoint x="-210" y="90" />
|
|
<di:waypoint x="-158" y="90" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|