117 lines
6.5 KiB
Plaintext
117 lines
6.5 KiB
Plaintext
|
<?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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1j7idla" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.4.1">
|
|||
|
<bpmn:process id="Process_18biih5" isExecutable="true">
|
|||
|
<bpmn:startEvent id="StartEvent_1" />
|
|||
|
<bpmn:userTask name="Has Bananas?" camunda:formKey="bananas_form">
|
|||
|
<bpmn:extensionElements>
|
|||
|
<camunda:formData>
|
|||
|
<camunda:formField id="has_bananas" label="Do you have bananas?" type="boolean" />
|
|||
|
</camunda:formData>
|
|||
|
</bpmn:extensionElements>
|
|||
|
<bpmn:incoming>SequenceFlow_1pnq3kg</bpmn:incoming>
|
|||
|
<bpmn:outgoing>SequenceFlow_1lmkn99</bpmn:outgoing>
|
|||
|
</bpmn:userTask>
|
|||
|
<bpmn:sequenceFlow id="SequenceFlow_1lmkn99" targetRef="ExclusiveGateway_003amsm" />
|
|||
|
<bpmn:exclusiveGateway id="ExclusiveGateway_003amsm">
|
|||
|
<bpmn:incoming>SequenceFlow_1lmkn99</bpmn:incoming>
|
|||
|
<bpmn:outgoing>SequenceFlow_No_Bananas</bpmn:outgoing>
|
|||
|
<bpmn:outgoing>SequenceFlow_Yes_Bananas</bpmn:outgoing>
|
|||
|
</bpmn:exclusiveGateway>
|
|||
|
<bpmn:sequenceFlow id="SequenceFlow_No_Bananas" name="no" sourceRef="ExclusiveGateway_003amsm" targetRef="Task_Why_No_Bananas">
|
|||
|
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">lower_case_true==true</bpmn:conditionExpression>
|
|||
|
</bpmn:sequenceFlow>
|
|||
|
<bpmn:userTask id="Task_Num_Bananas" name="Number of Bananas" camunda:formKey="banana_count">
|
|||
|
<bpmn:extensionElements>
|
|||
|
<camunda:formData>
|
|||
|
<camunda:formField id="num_bananas" label="How Many Bananas do you have?" type="long" defaultValue="1" />
|
|||
|
</camunda:formData>
|
|||
|
</bpmn:extensionElements>
|
|||
|
<bpmn:incoming>SequenceFlow_Yes_Bananas</bpmn:incoming>
|
|||
|
<bpmn:outgoing>SequenceFlow_02z84p5</bpmn:outgoing>
|
|||
|
</bpmn:userTask>
|
|||
|
<bpmn:userTask id="Task_Why_No_Bananas" name="Why no bananas" camunda:formKey="no_bananas">
|
|||
|
<bpmn:extensionElements>
|
|||
|
<camunda:formData>
|
|||
|
<camunda:formField id="why_no_bananas" label="Why you have no bananas?" type="string" defaultValue="I don't know." />
|
|||
|
</camunda:formData>
|
|||
|
</bpmn:extensionElements>
|
|||
|
<bpmn:incoming>SequenceFlow_No_Bananas</bpmn:incoming>
|
|||
|
<bpmn:outgoing>SequenceFlow_08djf6q</bpmn:outgoing>
|
|||
|
</bpmn:userTask>
|
|||
|
<bpmn:endEvent id="EndEvent_063bpg6">
|
|||
|
<bpmn:incoming>SequenceFlow_02z84p5</bpmn:incoming>
|
|||
|
</bpmn:endEvent>
|
|||
|
<bpmn:sequenceFlow id="SequenceFlow_02z84p5" sourceRef="Task_Num_Bananas" targetRef="EndEvent_063bpg6" />
|
|||
|
<bpmn:endEvent id="EndEvent_1hwtug4">
|
|||
|
<bpmn:incoming>SequenceFlow_08djf6q</bpmn:incoming>
|
|||
|
</bpmn:endEvent>
|
|||
|
<bpmn:sequenceFlow id="SequenceFlow_08djf6q" sourceRef="Task_Why_No_Bananas" targetRef="EndEvent_1hwtug4" />
|
|||
|
<bpmn:sequenceFlow id="SequenceFlow_1pnq3kg" sourceRef="StartEvent_1" />
|
|||
|
<bpmn:sequenceFlow id="SequenceFlow_Yes_Bananas" name="yes " sourceRef="ExclusiveGateway_003amsm" targetRef="Task_Num_Bananas">
|
|||
|
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">has_bananas == True</bpmn:conditionExpression>
|
|||
|
</bpmn:sequenceFlow>
|
|||
|
<bpmn:textAnnotation id="TextAnnotation_014touo">
|
|||
|
<bpmn:text>This start event doesn't go anywhere! that should raise a sensible error to the ui</bpmn:text>
|
|||
|
</bpmn:textAnnotation>
|
|||
|
</bpmn:process>
|
|||
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|||
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_18biih5">
|
|||
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|||
|
<dc:Bounds x="179" y="189" width="36" height="36" />
|
|||
|
</bpmndi:BPMNShape>
|
|||
|
<bpmndi:BPMNShape id="UserTask_0u8fjmw_di">
|
|||
|
<dc:Bounds x="270" y="77" width="100" height="80" />
|
|||
|
</bpmndi:BPMNShape>
|
|||
|
<bpmndi:BPMNEdge id="SequenceFlow_1lmkn99_di" bpmnElement="SequenceFlow_1lmkn99">
|
|||
|
<di:waypoint x="370" y="117" />
|
|||
|
<di:waypoint x="425" y="117" />
|
|||
|
</bpmndi:BPMNEdge>
|
|||
|
<bpmndi:BPMNShape id="ExclusiveGateway_14wqqsi_di" bpmnElement="ExclusiveGateway_003amsm" isMarkerVisible="true">
|
|||
|
<dc:Bounds x="425" y="182" width="50" height="50" />
|
|||
|
</bpmndi:BPMNShape>
|
|||
|
<bpmndi:BPMNEdge id="SequenceFlow_12acevn_di" bpmnElement="SequenceFlow_No_Bananas">
|
|||
|
<di:waypoint x="450" y="232" />
|
|||
|
<di:waypoint x="450" y="320" />
|
|||
|
<di:waypoint x="560" y="320" />
|
|||
|
<bpmndi:BPMNLabel>
|
|||
|
<dc:Bounds x="459" y="273" width="13" height="14" />
|
|||
|
</bpmndi:BPMNLabel>
|
|||
|
</bpmndi:BPMNEdge>
|
|||
|
<bpmndi:BPMNShape id="UserTask_0ht939a_di" bpmnElement="Task_Num_Bananas">
|
|||
|
<dc:Bounds x="560" y="167" width="100" height="80" />
|
|||
|
</bpmndi:BPMNShape>
|
|||
|
<bpmndi:BPMNShape id="UserTask_0gwjzr9_di" bpmnElement="Task_Why_No_Bananas">
|
|||
|
<dc:Bounds x="560" y="280" width="100" height="80" />
|
|||
|
</bpmndi:BPMNShape>
|
|||
|
<bpmndi:BPMNShape id="EndEvent_063bpg6_di" bpmnElement="EndEvent_063bpg6">
|
|||
|
<dc:Bounds x="752" y="189" width="36" height="36" />
|
|||
|
</bpmndi:BPMNShape>
|
|||
|
<bpmndi:BPMNEdge id="SequenceFlow_02z84p5_di" bpmnElement="SequenceFlow_02z84p5">
|
|||
|
<di:waypoint x="660" y="207" />
|
|||
|
<di:waypoint x="752" y="207" />
|
|||
|
</bpmndi:BPMNEdge>
|
|||
|
<bpmndi:BPMNShape id="EndEvent_1hwtug4_di" bpmnElement="EndEvent_1hwtug4">
|
|||
|
<dc:Bounds x="752" y="302" width="36" height="36" />
|
|||
|
</bpmndi:BPMNShape>
|
|||
|
<bpmndi:BPMNEdge id="SequenceFlow_08djf6q_di" bpmnElement="SequenceFlow_08djf6q">
|
|||
|
<di:waypoint x="660" y="320" />
|
|||
|
<di:waypoint x="752" y="320" />
|
|||
|
</bpmndi:BPMNEdge>
|
|||
|
<bpmndi:BPMNEdge id="SequenceFlow_1pnq3kg_di" bpmnElement="SequenceFlow_1pnq3kg">
|
|||
|
<di:waypoint x="215" y="117" />
|
|||
|
<di:waypoint x="270" y="117" />
|
|||
|
</bpmndi:BPMNEdge>
|
|||
|
<bpmndi:BPMNEdge id="SequenceFlow_0f3vx1l_di" bpmnElement="SequenceFlow_Yes_Bananas">
|
|||
|
<di:waypoint x="475" y="207" />
|
|||
|
<di:waypoint x="560" y="207" />
|
|||
|
<bpmndi:BPMNLabel>
|
|||
|
<dc:Bounds x="509" y="189" width="18" height="40" />
|
|||
|
</bpmndi:BPMNLabel>
|
|||
|
</bpmndi:BPMNEdge>
|
|||
|
<bpmndi:BPMNShape id="TextAnnotation_014touo_di" bpmnElement="TextAnnotation_014touo">
|
|||
|
<dc:Bounds x="220" y="80" width="100" height="96" />
|
|||
|
</bpmndi:BPMNShape>
|
|||
|
</bpmndi:BPMNPlane>
|
|||
|
</bpmndi:BPMNDiagram>
|
|||
|
</bpmn:definitions>
|