| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xmlns:flowable="http://flowable.org/bpmn" |
| xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" |
| xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" |
| xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" |
| typeLanguage="http://www.w3.org/2001/XMLSchema" |
| expressionLanguage="http://www.w3.org/1999/XPath" |
| targetNamespace="http://www.flowable.org/processdef"> |
| |
| <process id="assignPrinterRequest" name="Assign printer" isExecutable="true"> |
| <startEvent id="startevent1" name="Start"/> |
| <endEvent id="endevent1" name="End"/> |
| <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="selectPrinter"/> |
| <userTask id="selectPrinter" name="Select printer" flowable:formKey="selectPrinter" flowable:assignee="${wfExecutor}"> |
| <extensionElements> |
| <flowable:formProperty id="printer" name="Printer" variable="printer" type="dropdown" required="true"> |
| <flowable:value id="dropdownValueProvider" name="printersValueProvider"/> |
| </flowable:formProperty> |
| <flowable:formProperty id="printMode" name="Preferred print mode?" type="enum"> |
| <flowable:value id="bw" name="Black / White"/> |
| <flowable:value id="color" name="Color"/> |
| </flowable:formProperty> |
| </extensionElements> |
| </userTask> |
| <userTask id="approvePrinter" name="Approve printer" flowable:formKey="approvePrinter"> |
| <extensionElements> |
| <flowable:formProperty id="username" name="Username" type="string" expression="${userTO.username}" writable="false"/> |
| <flowable:formProperty id="printer" name="Selected printer" type="string" expression="${printer}" writable="false"/> |
| <flowable:formProperty id="approve" name="Approve?" type="boolean" variable="approve" required="true"/> |
| </extensionElements> |
| </userTask> |
| <sequenceFlow id="sid-D7047714-8E57-46B8-B6D4-4844DE330329" sourceRef="selectPrinter" targetRef="approvePrinter"/> |
| <serviceTask id="createARelationship" name="Create ARelationship" flowable:delegateExpression="${createARelationship}"/> |
| <sequenceFlow id="sid-33880AE7-35C6-4A39-8E5B-12D8BA53F042" sourceRef="approvePrinter" targetRef="createARelationship"/> |
| <sequenceFlow id="sid-831E1896-EDF9-4F7D-AA42-E86CC1F8C5D3" sourceRef="createARelationship" targetRef="endevent1"/> |
| </process> |
| <bpmndi:BPMNDiagram id="BPMNDiagram_assignPrinterRequest"> |
| <bpmndi:BPMNPlane bpmnElement="assignPrinterRequest" id="BPMNPlane_assignPrinterRequest"> |
| <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1"> |
| <omgdc:Bounds height="30.0" width="30.0" x="180.0" y="115.0"/> |
| </bpmndi:BPMNShape> |
| <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1"> |
| <omgdc:Bounds height="28.0" width="28.0" x="885.0" y="116.0"/> |
| </bpmndi:BPMNShape> |
| <bpmndi:BPMNShape bpmnElement="selectPrinter" id="BPMNShape_selectPrinter"> |
| <omgdc:Bounds height="80.0" width="100.0" x="330.0" y="90.0"/> |
| </bpmndi:BPMNShape> |
| <bpmndi:BPMNShape bpmnElement="approvePrinter" id="BPMNShape_approvePrinter"> |
| <omgdc:Bounds height="80.0" width="100.0" x="495.5" y="90.0"/> |
| </bpmndi:BPMNShape> |
| <bpmndi:BPMNShape bpmnElement="createARelationship" id="BPMNShape_createARelationship"> |
| <omgdc:Bounds height="80.0" width="100.0" x="675.0" y="90.0"/> |
| </bpmndi:BPMNShape> |
| <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1"> |
| <omgdi:waypoint x="209.94999901196195" y="130.0"/> |
| <omgdi:waypoint x="330.0" y="130.0"/> |
| </bpmndi:BPMNEdge> |
| <bpmndi:BPMNEdge bpmnElement="sid-D7047714-8E57-46B8-B6D4-4844DE330329" id="BPMNEdge_sid-D7047714-8E57-46B8-B6D4-4844DE330329"> |
| <omgdi:waypoint x="429.95000000000005" y="130.0"/> |
| <omgdi:waypoint x="495.5" y="130.0"/> |
| </bpmndi:BPMNEdge> |
| <bpmndi:BPMNEdge bpmnElement="sid-33880AE7-35C6-4A39-8E5B-12D8BA53F042" id="BPMNEdge_sid-33880AE7-35C6-4A39-8E5B-12D8BA53F042"> |
| <omgdi:waypoint x="595.4499999999068" y="130.0"/> |
| <omgdi:waypoint x="675.0" y="130.0"/> |
| </bpmndi:BPMNEdge> |
| <bpmndi:BPMNEdge bpmnElement="sid-831E1896-EDF9-4F7D-AA42-E86CC1F8C5D3" id="BPMNEdge_sid-831E1896-EDF9-4F7D-AA42-E86CC1F8C5D3"> |
| <omgdi:waypoint x="774.9499999999266" y="130.0"/> |
| <omgdi:waypoint x="885.0" y="130.0"/> |
| </bpmndi:BPMNEdge> |
| </bpmndi:BPMNPlane> |
| </bpmndi:BPMNDiagram> |
| </definitions> |