272 lines
12 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_15ssmj7</bpmn:incoming>
</bpmn:endEvent>
<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_1ieaamx</bpmn:outgoing>
<bpmn:script>age = 51
height = 1.93
children = ["Robert", "Edward", "Willie", "Tadd"]
is_married = True
size="medium"
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: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_1w62nhn</bpmn:incoming>
<bpmn:outgoing>Flow_0av3i4o</bpmn:outgoing>
</bpmn:userTask>
<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_0wru4o3</bpmn:incoming>
<bpmn:outgoing>Flow_1ppsinh</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:manualTask id="Activity_1ow98bt" name="Simple Manual Task">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>![Minion]({{response.message}})
</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0mh2mbr</bpmn:incoming>
<bpmn:outgoing>Flow_1nq7xbv</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:sequenceFlow id="Flow_0wru4o3" name="... simple" sourceRef="Gateway_156cl94" targetRef="Activity_0ir5asl">
<bpmn:conditionExpression>title == "simple"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:businessRuleTask id="Activity_0zx244q" name="Simple Business Rule">
<bpmn:extensionElements>
<spiffworkflow:calledDecisionId>decision_1</spiffworkflow:calledDecisionId>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0oyc1oz</bpmn:incoming>
<bpmn:outgoing>Flow_0zqmkvl</bpmn:outgoing>
</bpmn:businessRuleTask>
<bpmn:sequenceFlow id="Flow_0mh2mbr" name="...manual" sourceRef="Gateway_156cl94" targetRef="Activity_1ow98bt">
<bpmn:conditionExpression>title == "manual"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0oyc1oz" sourceRef="Gateway_156cl94" targetRef="Activity_0zx244q" />
<bpmn:sequenceFlow id="Flow_1ppsinh" sourceRef="Activity_0ir5asl" targetRef="Gateway_0z8t5sa" />
<bpmn:sequenceFlow id="Flow_1nq7xbv" sourceRef="Activity_1ow98bt" targetRef="Gateway_0z8t5sa" />
<bpmn:sequenceFlow id="Flow_0zqmkvl" sourceRef="Activity_0zx244q" targetRef="Gateway_0z8t5sa" />
<bpmn:sequenceFlow id="Flow_0av3i4o" sourceRef="Activity_1qrgbu9" targetRef="Gateway_156cl94" />
<bpmn:sequenceFlow id="Flow_15ssmj7" sourceRef="Gateway_0z8t5sa" targetRef="Event_1r7u3r3" />
<bpmn:sequenceFlow id="Flow_1ieaamx" sourceRef="Activity_00tgyxo" targetRef="Activity_1dceci2" />
<bpmn:serviceTask id="Activity_1dceci2" 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_1ieaamx</bpmn:incoming>
<bpmn:outgoing>Flow_1w62nhn</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_1w62nhn" sourceRef="Activity_1dceci2" targetRef="Activity_1qrgbu9" />
<bpmn:inclusiveGateway id="Gateway_156cl94" name="title is ...." default="Flow_0oyc1oz">
<bpmn:incoming>Flow_0av3i4o</bpmn:incoming>
<bpmn:outgoing>Flow_0wru4o3</bpmn:outgoing>
<bpmn:outgoing>Flow_0mh2mbr</bpmn:outgoing>
<bpmn:outgoing>Flow_0oyc1oz</bpmn:outgoing>
</bpmn:inclusiveGateway>
<bpmn:inclusiveGateway id="Gateway_0z8t5sa">
<bpmn:incoming>Flow_1ppsinh</bpmn:incoming>
<bpmn:incoming>Flow_1nq7xbv</bpmn:incoming>
<bpmn:incoming>Flow_0zqmkvl</bpmn:incoming>
<bpmn:outgoing>Flow_15ssmj7</bpmn:outgoing>
</bpmn:inclusiveGateway>
</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="-458" y="72" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1r7u3r3_di" bpmnElement="Event_1r7u3r3">
<dc:Bounds x="532" y="72" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_003fg1c_di" bpmnElement="Activity_00tgyxo">
<dc:Bounds x="-380" y="50" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1wrp6rk_di" bpmnElement="Activity_1qrgbu9">
<dc:Bounds x="-70" y="50" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0xafp5o_di" bpmnElement="Activity_0ir5asl">
<dc:Bounds x="190" y="50" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_12l2xmp_di" bpmnElement="Activity_1ow98bt">
<dc:Bounds x="190" y="150" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1sjpnoj_di" bpmnElement="Activity_0zx244q">
<dc:Bounds x="190" y="-50" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1kq62zx" bpmnElement="Activity_1dceci2">
<dc:Bounds x="-230" y="50" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1640xpg_di" bpmnElement="Gateway_156cl94">
<dc:Bounds x="65" y="65" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="98" y="113" width="44" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_15q67e9_di" bpmnElement="Gateway_0z8t5sa">
<dc:Bounds x="365" y="65" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0szh8pc_di" bpmnElement="Flow_0szh8pc">
<di:waypoint x="-422" y="90" />
<di:waypoint x="-380" y="90" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0wru4o3_di" bpmnElement="Flow_0wru4o3">
<di:waypoint x="115" y="90" />
<di:waypoint x="190" y="90" />
<bpmndi:BPMNLabel>
<dc:Bounds x="130" y="72" width="45" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0mh2mbr_di" bpmnElement="Flow_0mh2mbr">
<di:waypoint x="90" y="115" />
<di:waypoint x="90" y="190" />
<di:waypoint x="190" y="190" />
<bpmndi:BPMNLabel>
<dc:Bounds x="127" y="173" width="46" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0oyc1oz_di" bpmnElement="Flow_0oyc1oz">
<di:waypoint x="90" y="65" />
<di:waypoint x="90" y="-10" />
<di:waypoint x="190" y="-10" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ppsinh_di" bpmnElement="Flow_1ppsinh">
<di:waypoint x="290" y="90" />
<di:waypoint x="365" y="90" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1nq7xbv_di" bpmnElement="Flow_1nq7xbv">
<di:waypoint x="290" y="190" />
<di:waypoint x="390" y="190" />
<di:waypoint x="390" y="115" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0zqmkvl_di" bpmnElement="Flow_0zqmkvl">
<di:waypoint x="290" y="-10" />
<di:waypoint x="390" y="-10" />
<di:waypoint x="390" y="65" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0av3i4o_di" bpmnElement="Flow_0av3i4o">
<di:waypoint x="30" y="90" />
<di:waypoint x="65" y="90" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_15ssmj7_di" bpmnElement="Flow_15ssmj7">
<di:waypoint x="415" y="90" />
<di:waypoint x="532" y="90" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ieaamx_di" bpmnElement="Flow_1ieaamx">
<di:waypoint x="-280" y="90" />
<di:waypoint x="-230" y="90" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1w62nhn_di" bpmnElement="Flow_1w62nhn">
<di:waypoint x="-130" y="90" />
<di:waypoint x="-70" y="90" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>