157 lines
6.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_dan_funk_5t3nhn3" isExecutable="true">
<bpmn:dataObjectReference id="DataObjectReference_09r1zzv" />
<bpmn:dataObjectReference id="DataObjectReference_0nby41g" />
<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_0om1kp0</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_0vqof4u" sourceRef="Activity_00tgyxo" targetRef="Activity_1qrgbu9" />
<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
first_name = "Abe"
last_name = "Lincoln"
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:sequenceFlow id="Flow_1gfb3tt" sourceRef="Activity_1qrgbu9" targetRef="Activity_0ir5asl" />
<bpmn:userTask id="Activity_1qrgbu9" 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_0vqof4u</bpmn:incoming>
<bpmn:outgoing>Flow_1gfb3tt</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_0om1kp0" sourceRef="Activity_0ir5asl" targetRef="Event_1r7u3r3" />
<bpmn:serviceTask id="Activity_0ir5asl" name="Simple Service Task">
<bpmn:extensionElements>
<spiffworkflow:serviceTaskOperator id="http/GetRequest" resultVariable="response">
<spiffworkflow:parameters>
<spiffworkflow:parameter id="url" type="str" value="&#34;https://dog.ceo/api/breeds/image/random&#34;" />
<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_1gfb3tt</bpmn:incoming>
<bpmn:outgoing>Flow_0om1kp0</bpmn:outgoing>
</bpmn:serviceTask>
</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="Activity_003fg1c_di" bpmnElement="Activity_00tgyxo">
<dc:Bounds x="-310" y="50" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1wrp6rk_di" bpmnElement="Activity_1qrgbu9">
<dc:Bounds x="-160" y="50" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1r7u3r3_di" bpmnElement="Event_1r7u3r3">
<dc:Bounds x="262" y="72" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0xafp5o_di" bpmnElement="Activity_0ir5asl">
<dc:Bounds x="0" 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="-160" y="90" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1gfb3tt_di" bpmnElement="Flow_1gfb3tt">
<di:waypoint x="-60" y="90" />
<di:waypoint x="0" y="90" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0om1kp0_di" bpmnElement="Flow_0om1kp0">
<di:waypoint x="100" y="90" />
<di:waypoint x="262" y="90" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>