|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | + ~ you may not use this file except in compliance with the License. |
| 5 | + ~ You may obtain a copy of the License at |
| 6 | + ~ |
| 7 | + ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | + ~ |
| 9 | + ~ Unless required by applicable law or agreed to in writing, software |
| 10 | + ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | + ~ See the License for the specific language governing permissions and |
| 13 | + ~ limitations under the License. |
| 14 | + --> |
| 15 | + |
| 16 | +<definitions id="definitions" |
| 17 | + xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" |
| 18 | + xmlns:flowable="http://flowable.org/bpmn" |
| 19 | + targetNamespace="Examples"> |
| 20 | + |
| 21 | + <process id="identityServiceInScript"> |
| 22 | + |
| 23 | + <startEvent id="theStart"/> |
| 24 | + <sequenceFlow id="flow1" sourceRef="theStart" targetRef="script1"/> |
| 25 | + |
| 26 | + <scriptTask id="script1" scriptFormat="groovy" flowable:autoStoreVariables="false"> |
| 27 | + <script><![CDATA[ |
| 28 | + execution.setVariable('userCount', identityService.createUserQuery().count()); |
| 29 | + execution.setVariable('legacyUserCount', identityServiceKey.createUserQuery().count()); |
| 30 | + ]]></script> |
| 31 | + </scriptTask> |
| 32 | + <sequenceFlow id="flow2" sourceRef="script1" targetRef="theTask"/> |
| 33 | + |
| 34 | + <userTask id="theTask" name="keep-alive task"/> |
| 35 | + <sequenceFlow id="flow3" sourceRef="theTask" targetRef="theEnd"/> |
| 36 | + |
| 37 | + <endEvent id="theEnd"/> |
| 38 | + |
| 39 | + </process> |
| 40 | + |
| 41 | +</definitions> |
0 commit comments