blob: 8325733f9b29c47a5b142c6e9933a7ee864a7b15 [file]
<?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="userWorkflow" name="User Workflow" isExecutable="true">
<startEvent id="theStart"/>
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="create"/>
<serviceTask id="create" name="Create" flowable:delegateExpression="${create}"/>
<sequenceFlow id="flow2" sourceRef="create" targetRef="activate"/>
<scriptTask id="activate" name="Activate" scriptFormat="groovy" flowable:autoStoreVariables="false">
<script><![CDATA[execution.setVariable("propagateEnable", Boolean.TRUE);]]></script>
</scriptTask>
<sequenceFlow id="flow3" sourceRef="activate" targetRef="active"/>
<userTask id="active" name="Active"/>
<sequenceFlow id="flow8" sourceRef="active" targetRef="activeGw"/>
<exclusiveGateway id="activeGw"/>
<sequenceFlow id="active2Update" sourceRef="activeGw" targetRef="update">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${task == 'update'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="active2Suspend" sourceRef="activeGw" targetRef="suspend">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${task == 'suspend'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="active2Delete" sourceRef="activeGw" targetRef="delete">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${task == 'delete'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="active2RequestPasswordReset" sourceRef="activeGw" targetRef="generateToken4PasswordReset">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${task == 'requestPasswordReset'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="active2ConfirmPasswordReset" sourceRef="activeGw" targetRef="checkToken4ConfirmPasswordReset">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${task == 'confirmPasswordReset'}]]></conditionExpression>
</sequenceFlow>
<serviceTask id="update" name="Update" flowable:delegateExpression="${update}"/>
<sequenceFlow id="sid-EA22026A-25F0-4ED0-AB6E-9CE9CE74623C" sourceRef="update" targetRef="active"/>
<serviceTask id="suspend" name="Suspend" flowable:delegateExpression="${suspend}"/>
<sequenceFlow id="flow10" sourceRef="suspend" targetRef="suspended"/>
<userTask id="suspended" name="Suspended"/>
<sequenceFlow id="flow11" sourceRef="suspended" targetRef="suspendedGw"/>
<exclusiveGateway id="suspendedGw"/>
<sequenceFlow id="suspended2Reactivate" sourceRef="suspendedGw" targetRef="reactivate">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${task == 'reactivate'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="suspended2Delete" sourceRef="suspendedGw" targetRef="delete">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${task == 'delete'}]]></conditionExpression>
</sequenceFlow>
<serviceTask id="reactivate" name="Reactivate" flowable:delegateExpression="${reactivate}"/>
<sequenceFlow id="flow12" sourceRef="reactivate" targetRef="active"/>
<serviceTask id="generateToken4PasswordReset" name="Generate Token" flowable:delegateExpression="${generateToken}"/>
<sequenceFlow id="sid-7F78CE07-A7A1-467F-BB4B-40FB234AEFF7" sourceRef="generateToken4PasswordReset" targetRef="notify4RequestPasswordReset"/>
<serviceTask id="notify4RequestPasswordReset" name="Notification" flowable:delegateExpression="${notify}"/>
<sequenceFlow id="sid-CF9ACA40-7750-47C3-A508-7250D24D4F1F" sourceRef="notify4RequestPasswordReset" targetRef="active"/>
<serviceTask id="checkToken4ConfirmPasswordReset" name="Check token, remove and update password" flowable:delegateExpression="${passwordReset}"/>
<sequenceFlow id="sid-3E9FE01D-CC60-4A95-B356-CA0DC000FAD6" sourceRef="checkToken4ConfirmPasswordReset" targetRef="notify4ConfirmPasswordReset"/>
<serviceTask id="notify4ConfirmPasswordReset" name="Notification" flowable:delegateExpression="${notify}"/>
<sequenceFlow id="sid-A37806A7-6B7B-48A2-BB37-DAE640231144" sourceRef="notify4ConfirmPasswordReset" targetRef="active"/>
<serviceTask id="delete" name="Delete" flowable:delegateExpression="${delete}"/>
<sequenceFlow id="flow99" sourceRef="delete" targetRef="theEnd"/>
<endEvent id="theEnd"/>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_userWorkflow">
<bpmndi:BPMNPlane bpmnElement="userWorkflow" id="BPMNPlane_userWorkflow">
<bpmndi:BPMNShape bpmnElement="theStart" id="BPMNShape_theStart">
<omgdc:Bounds height="30.0" width="30.0" x="540.0" y="521.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="create" id="BPMNShape_create">
<omgdc:Bounds height="60.0" width="100.0" x="620.0" y="509.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="activate" id="BPMNShape_activate">
<omgdc:Bounds height="80.0" width="100.0" x="828.0" y="500.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="active" id="BPMNShape_active">
<omgdc:Bounds height="60.0" width="100.0" x="1030.0" y="511.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="activeGw" id="BPMNShape_activeGw">
<omgdc:Bounds height="40.0" width="40.0" x="1400.0" y="520.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="update" id="BPMNShape_update">
<omgdc:Bounds height="60.0" width="100.0" x="1370.0" y="615.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="suspend" id="BPMNShape_suspend">
<omgdc:Bounds height="60.0" width="100.0" x="1490.0" y="370.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="suspended" id="BPMNShape_suspended">
<omgdc:Bounds height="60.0" width="100.0" x="1640.0" y="370.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="suspendedGw" id="BPMNShape_suspendedGw">
<omgdc:Bounds height="40.0" width="40.0" x="1820.0" y="380.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="reactivate" id="BPMNShape_reactivate">
<omgdc:Bounds height="60.0" width="100.0" x="1940.0" y="290.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="generateToken4PasswordReset" id="BPMNShape_generateToken4PasswordReset">
<omgdc:Bounds height="81.0" width="121.0" x="1515.0" y="604.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="notify4RequestPasswordReset" id="BPMNShape_notify4RequestPasswordReset">
<omgdc:Bounds height="81.0" width="121.0" x="1515.0" y="750.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="checkToken4ConfirmPasswordReset" id="BPMNShape_checkToken4ConfirmPasswordReset">
<omgdc:Bounds height="81.0" width="121.0" x="1725.0" y="664.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="notify4ConfirmPasswordReset" id="BPMNShape_notify4ConfirmPasswordReset">
<omgdc:Bounds height="81.0" width="121.0" x="1725.0" y="810.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="delete" id="BPMNShape_delete">
<omgdc:Bounds height="60.0" width="100.0" x="1940.0" y="438.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="theEnd" id="BPMNShape_theEnd">
<omgdc:Bounds height="28.0" width="28.0" x="2080.0" y="451.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="active2Update" id="BPMNEdge_active2Update">
<omgdi:waypoint x="1420.0" y="559.9405090390104"/>
<omgdi:waypoint x="1420.0" y="615.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="suspended2Delete" id="BPMNEdge_suspended2Delete">
<omgdi:waypoint x="1859.9433544303797" y="400.0"/>
<omgdi:waypoint x="1990.0" y="400.0"/>
<omgdi:waypoint x="1990.0" y="438.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="active2ConfirmPasswordReset" id="BPMNEdge_active2ConfirmPasswordReset">
<omgdi:waypoint x="1439.947267871352" y="540.0"/>
<omgdi:waypoint x="1785.0" y="540.0"/>
<omgdi:waypoint x="1785.3768996960487" y="664.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-EA22026A-25F0-4ED0-AB6E-9CE9CE74623C" id="BPMNEdge_sid-EA22026A-25F0-4ED0-AB6E-9CE9CE74623C">
<omgdi:waypoint x="1370.0" y="645.0"/>
<omgdi:waypoint x="1080.0" y="645.0"/>
<omgdi:waypoint x="1080.0" y="570.95"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="suspended2Reactivate" id="BPMNEdge_suspended2Reactivate">
<omgdi:waypoint x="1859.9339371980675" y="400.0"/>
<omgdi:waypoint x="1902.0" y="400.0"/>
<omgdi:waypoint x="1902.0" y="320.0"/>
<omgdi:waypoint x="1939.9999999999768" y="320.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="active2Delete" id="BPMNEdge_active2Delete">
<omgdi:waypoint x="1439.9482503069637" y="540.0"/>
<omgdi:waypoint x="1990.0" y="540.0"/>
<omgdi:waypoint x="1990.0" y="497.95"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-7F78CE07-A7A1-467F-BB4B-40FB234AEFF7" id="BPMNEdge_sid-7F78CE07-A7A1-467F-BB4B-40FB234AEFF7">
<omgdi:waypoint x="1575.5" y="684.9499999999999"/>
<omgdi:waypoint x="1575.5" y="750.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
<omgdi:waypoint x="569.9448521215137" y="536.3898700596537"/>
<omgdi:waypoint x="620.0" y="537.6956521739131"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
<omgdi:waypoint x="719.9499999999825" y="539.2401442307691"/>
<omgdi:waypoint x="827.9999999999945" y="539.7596153846154"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
<omgdi:waypoint x="927.9499999999819" y="540.2472772277227"/>
<omgdi:waypoint x="1029.9999999999911" y="540.7524752475248"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="active2RequestPasswordReset" id="BPMNEdge_active2RequestPasswordReset">
<omgdi:waypoint x="1439.943568665287" y="540.0"/>
<omgdi:waypoint x="1575.0" y="540.0"/>
<omgdi:waypoint x="1575.3062200956938" y="604.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-3E9FE01D-CC60-4A95-B356-CA0DC000FAD6" id="BPMNEdge_sid-3E9FE01D-CC60-4A95-B356-CA0DC000FAD6">
<omgdi:waypoint x="1785.5" y="744.9499999999999"/>
<omgdi:waypoint x="1785.5" y="810.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
<omgdi:waypoint x="1589.95" y="400.0"/>
<omgdi:waypoint x="1640.0" y="400.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-CF9ACA40-7750-47C3-A508-7250D24D4F1F" id="BPMNEdge_sid-CF9ACA40-7750-47C3-A508-7250D24D4F1F">
<omgdi:waypoint x="1514.9999999999554" y="790.438950554995"/>
<omgdi:waypoint x="1080.0" y="790.0"/>
<omgdi:waypoint x="1080.0" y="570.95"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
<omgdi:waypoint x="1129.9499999999914" y="540.8529411764707"/>
<omgdi:waypoint x="1400.0586510263724" y="540.058504398827"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11">
<omgdi:waypoint x="1739.95" y="400.0"/>
<omgdi:waypoint x="1820.0" y="400.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow99" id="BPMNEdge_flow99">
<omgdi:waypoint x="2039.9499999999982" y="466.5576923076923"/>
<omgdi:waypoint x="2080.005704870052" y="465.4022398573087"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="active2Suspend" id="BPMNEdge_active2Suspend">
<omgdi:waypoint x="1439.9416944213153" y="540.0"/>
<omgdi:waypoint x="1540.0" y="540.0"/>
<omgdi:waypoint x="1540.0" y="429.95"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow12" id="BPMNEdge_flow12">
<omgdi:waypoint x="1990.0" y="290.0"/>
<omgdi:waypoint x="1990.0" y="261.0"/>
<omgdi:waypoint x="1080.0" y="261.0"/>
<omgdi:waypoint x="1080.0" y="511.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-A37806A7-6B7B-48A2-BB37-DAE640231144" id="BPMNEdge_sid-A37806A7-6B7B-48A2-BB37-DAE640231144">
<omgdi:waypoint x="1724.9999999998677" y="850.4571226080794"/>
<omgdi:waypoint x="1080.0" y="850.0"/>
<omgdi:waypoint x="1080.0" y="570.95"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>