| <?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="directorGroupRequest" name="Assign director group" isExecutable="true"> |
| <startEvent id="startevent1" name="Start"/> |
| <endEvent id="endevent1" name="End"/> |
| <userTask id="firstApproval" name="First approval" flowable:formKey="firstApproval" flowable:candidateGroups="managingDirector"> |
| <extensionElements> |
| <flowable:formProperty id="username" name="Username" type="string" expression="${userTO.username}" writable="false"/> |
| <flowable:formProperty id="firstLevelApprove" name="Approve?" type="boolean" variable="firstLevelApprove" required="true"/> |
| <flowable:formProperty id="rejectReason" name="Reason for rejecting" type="string" variable="rejectReason"/> |
| </extensionElements> |
| </userTask> |
| <userTask id="secondApproval" name="Second approval" flowable:formKey="secondApproval" flowable:candidateGroups="root"> |
| <extensionElements> |
| <flowable:formProperty id="username" name="Username" type="string" expression="${userTO.username}" writable="false"/> |
| <flowable:formProperty id="secondLevelApprove" name="Approve?" type="boolean" variable="secondLevelApprove" required="true"/> |
| <flowable:formProperty id="rejectReason" name="Reason for rejecting" type="string" variable="rejectReason"/> |
| </extensionElements> |
| </userTask> |
| <serviceTask id="assignDirectorGroup" name="Assign director group" flowable:delegateExpression="${assignDirectorGroup}"/> |
| <exclusiveGateway id="sid-1E2454BD-FAE9-4A15-B169-D41843A39C15" default="sid-338A4B20-89E9-46B2-8AB3-36291455051B"/> |
| <sequenceFlow id="sid-A7C20EB5-AAE6-4CF3-A151-F1A9FA9207A0" sourceRef="firstApproval" targetRef="sid-1E2454BD-FAE9-4A15-B169-D41843A39C15"/> |
| <sequenceFlow id="sid-92E7D60C-09E7-465A-8115-C60ACD06E955" sourceRef="secondApproval" targetRef="assignDirectorGroup"/> |
| <sequenceFlow id="sid-90AAE913-A229-4136-8C1D-AB5A78ACE209" sourceRef="assignDirectorGroup" targetRef="endevent1"/> |
| <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="firstApproval"/> |
| <sequenceFlow id="sid-338A4B20-89E9-46B2-8AB3-36291455051B" sourceRef="sid-1E2454BD-FAE9-4A15-B169-D41843A39C15" targetRef="secondApproval"/> |
| <sequenceFlow id="sid-D43EBA31-49F5-4305-B71D-122E98D1DE22" sourceRef="sid-1E2454BD-FAE9-4A15-B169-D41843A39C15" targetRef="endevent1"> |
| <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!firstLevelApprove}]]></conditionExpression> |
| </sequenceFlow> |
| </process> |
| <bpmndi:BPMNDiagram id="BPMNDiagram_directorGroupRequest"> |
| <bpmndi:BPMNPlane bpmnElement="directorGroupRequest" id="BPMNPlane_directorGroupRequest"> |
| <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1"> |
| <omgdc:Bounds height="30.0" width="30.0" x="180.0" y="130.0"/> |
| </bpmndi:BPMNShape> |
| <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1"> |
| <omgdc:Bounds height="28.0" width="28.0" x="711.0" y="131.0"/> |
| </bpmndi:BPMNShape> |
| <bpmndi:BPMNShape bpmnElement="firstApproval" id="BPMNShape_firstApproval"> |
| <omgdc:Bounds height="80.0" width="100.0" x="300.0" y="105.0"/> |
| </bpmndi:BPMNShape> |
| <bpmndi:BPMNShape bpmnElement="secondApproval" id="BPMNShape_secondApproval"> |
| <omgdc:Bounds height="80.0" width="100.0" x="480.0" y="235.0"/> |
| </bpmndi:BPMNShape> |
| <bpmndi:BPMNShape bpmnElement="assignDirectorGroup" id="BPMNShape_assignDirectorGroup"> |
| <omgdc:Bounds height="80.0" width="100.0" x="675.0" y="235.0"/> |
| </bpmndi:BPMNShape> |
| <bpmndi:BPMNShape bpmnElement="sid-1E2454BD-FAE9-4A15-B169-D41843A39C15" id="BPMNShape_sid-1E2454BD-FAE9-4A15-B169-D41843A39C15"> |
| <omgdc:Bounds height="40.0" width="40.0" x="510.0" y="125.0"/> |
| </bpmndi:BPMNShape> |
| <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1"> |
| <omgdi:waypoint x="209.94999837389875" y="145.0"/> |
| <omgdi:waypoint x="300.0" y="145.0"/> |
| </bpmndi:BPMNEdge> |
| <bpmndi:BPMNEdge bpmnElement="sid-338A4B20-89E9-46B2-8AB3-36291455051B" id="BPMNEdge_sid-338A4B20-89E9-46B2-8AB3-36291455051B"> |
| <omgdi:waypoint x="530.4263565891473" y="164.51605344694036"/> |
| <omgdi:waypoint x="530.1542471042471" y="235.0"/> |
| </bpmndi:BPMNEdge> |
| <bpmndi:BPMNEdge bpmnElement="sid-90AAE913-A229-4136-8C1D-AB5A78ACE209" id="BPMNEdge_sid-90AAE913-A229-4136-8C1D-AB5A78ACE209"> |
| <omgdi:waypoint x="725.0" y="235.0"/> |
| <omgdi:waypoint x="725.0" y="158.9499300542635"/> |
| </bpmndi:BPMNEdge> |
| <bpmndi:BPMNEdge bpmnElement="sid-92E7D60C-09E7-465A-8115-C60ACD06E955" id="BPMNEdge_sid-92E7D60C-09E7-465A-8115-C60ACD06E955"> |
| <omgdi:waypoint x="579.9499999997585" y="275.0"/> |
| <omgdi:waypoint x="674.9999999998254" y="275.0"/> |
| </bpmndi:BPMNEdge> |
| <bpmndi:BPMNEdge bpmnElement="sid-D43EBA31-49F5-4305-B71D-122E98D1DE22" id="BPMNEdge_sid-D43EBA31-49F5-4305-B71D-122E98D1DE22"> |
| <omgdi:waypoint x="549.49393353939" y="145.45103092783506"/> |
| <omgdi:waypoint x="711.0000424606164" y="145.03586113839918"/> |
| </bpmndi:BPMNEdge> |
| <bpmndi:BPMNEdge bpmnElement="sid-A7C20EB5-AAE6-4CF3-A151-F1A9FA9207A0" id="BPMNEdge_sid-A7C20EB5-AAE6-4CF3-A151-F1A9FA9207A0"> |
| <omgdi:waypoint x="399.9499999999431" y="145.0"/> |
| <omgdi:waypoint x="510.0" y="145.0"/> |
| </bpmndi:BPMNEdge> |
| </bpmndi:BPMNPlane> |
| </bpmndi:BPMNDiagram> |
| </definitions> |