| <?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="verifyAddedVariables" name="Verify Added Variables" isExecutable="true"> |
| <startEvent id="startevent1" name="Start" flowable:formFieldValidation="true"/> |
| <userTask id="testForm" name="Test Form" flowable:formKey="approval" flowable:formFieldValidation="true"> |
| <extensionElements> |
| <flowable:formProperty id="approve" name="Approve?" type="boolean" variable="approve" required="true"/> |
| <flowable:formProperty id="providedVariable" name="Provided Variable" type="string" expression="${providedVariable}" writable="false"/> |
| <flowable:formProperty id="username" name="Username" type="string" expression="${userTO.username}" writable="false"/> |
| </extensionElements> |
| </userTask> |
| <sequenceFlow id="sid-27C1484D-96E9-4B39-A129-F4AB14ABDF13" sourceRef="testForm" targetRef="endevent1"/> |
| <sequenceFlow id="sid-A9FEC01B-768E-4C07-B025-6D019D72015F" sourceRef="startevent1" targetRef="testForm"/> |
| <endEvent id="endevent1" name="End"/> |
| </process> |
| <bpmndi:BPMNDiagram id="BPMNDiagram_userWorkflow"> |
| <bpmndi:BPMNPlane bpmnElement="userWorkflow" id="BPMNPlane_userWorkflow"> |
| <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1"> |
| <omgdc:Bounds height="30.0" width="30.0" x="150.0" y="115.0"/> |
| </bpmndi:BPMNShape> |
| <bpmndi:BPMNShape bpmnElement="testForm" id="BPMNShape_testForm"> |
| <omgdc:Bounds height="80.0" width="100.0" x="345.0" y="90.0"/> |
| </bpmndi:BPMNShape> |
| <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1"> |
| <omgdc:Bounds height="28.0" width="28.0" x="615.0" y="116.0"/> |
| </bpmndi:BPMNShape> |
| <bpmndi:BPMNEdge bpmnElement="sid-27C1484D-96E9-4B39-A129-F4AB14ABDF13" id="BPMNEdge_sid-27C1484D-96E9-4B39-A129-F4AB14ABDF13"> |
| <omgdi:waypoint x="444.94999999992734" y="130.0"/> |
| <omgdi:waypoint x="615.0" y="130.0"/> |
| </bpmndi:BPMNEdge> |
| <bpmndi:BPMNEdge bpmnElement="sid-A9FEC01B-768E-4C07-B025-6D019D72015F" id="BPMNEdge_sid-A9FEC01B-768E-4C07-B025-6D019D72015F"> |
| <omgdi:waypoint x="179.94999965443563" y="130.0"/> |
| <omgdi:waypoint x="345.0" y="130.0"/> |
| </bpmndi:BPMNEdge> |
| </bpmndi:BPMNPlane> |
| </bpmndi:BPMNDiagram> |
| </definitions> |