test.bpmn 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL"
  3. xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
  4. xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn"
  6. exporter="Camunda Modeler" exporterVersion="1.3.2">
  7. <bpmn:process id="taskLoopProcess" isExecutable="true">
  8. <bpmn:startEvent id="StartEvent_1">
  9. <bpmn:outgoing>SequenceFlow_00cfpc8</bpmn:outgoing>
  10. </bpmn:startEvent>
  11. <bpmn:sequenceFlow id="SequenceFlow_00cfpc8" sourceRef="StartEvent_1" targetRef="recurring" />
  12. <bpmn:scriptTask id="recurring" name="Recurring" scriptFormat="JavaScript" camunda:resultVariable="">
  13. <bpmn:incoming>SequenceFlow_00cfpc8</bpmn:incoming>
  14. <bpmn:outgoing>SequenceFlow_0givraz</bpmn:outgoing>
  15. <bpmn:multiInstanceLoopCharacteristics camunda:collection="${this.environment.variables.handlers}" camunda:elementVariable="item">
  16. <bpmn:inputDataItem>this.environment.variables.handlers</bpmn:inputDataItem>
  17. <bpmn:loopCardinality xsi:type="bpmn:tFormalExpression">10</bpmn:loopCardinality>
  18. <bpmn:completionCondition xsi:type="bpmn:tFormalExpression">${this.environment.variables.count >=3}</bpmn:completionCondition>
  19. </bpmn:multiInstanceLoopCharacteristics>
  20. <bpmn:script><![CDATA[
  21. this.environment.variables.count++;
  22. next()]]></bpmn:script>
  23. </bpmn:scriptTask>
  24. <bpmn:endEvent id="EndEvent_16n25gf">
  25. <bpmn:incoming>SequenceFlow_0givraz</bpmn:incoming>
  26. </bpmn:endEvent>
  27. <bpmn:sequenceFlow id="SequenceFlow_0givraz" sourceRef="recurring" targetRef="EndEvent_16n25gf" />
  28. </bpmn:process>
  29. <bpmndi:BPMNDiagram id="BPMNDiagram_1">
  30. <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="taskLoopProcess">
  31. <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
  32. <dc:Bounds x="173" y="102" width="36" height="36" />
  33. </bpmndi:BPMNShape>
  34. <bpmndi:BPMNEdge id="SequenceFlow_00cfpc8_di" bpmnElement="SequenceFlow_00cfpc8">
  35. <di:waypoint xsi:type="dc:Point" x="209" y="120" />
  36. <di:waypoint xsi:type="dc:Point" x="288" y="120" />
  37. <bpmndi:BPMNLabel>
  38. <dc:Bounds x="203.5" y="95" width="90" height="20" />
  39. </bpmndi:BPMNLabel>
  40. </bpmndi:BPMNEdge>
  41. <bpmndi:BPMNShape id="ScriptTask_1rxtc3o_di" bpmnElement="recurring">
  42. <dc:Bounds x="288" y="80" width="100" height="80" />
  43. </bpmndi:BPMNShape>
  44. <bpmndi:BPMNShape id="EndEvent_16n25gf_di" bpmnElement="EndEvent_16n25gf">
  45. <dc:Bounds x="474" y="102" width="36" height="36" />
  46. <bpmndi:BPMNLabel>
  47. <dc:Bounds x="447" y="138" width="90" height="20" />
  48. </bpmndi:BPMNLabel>
  49. </bpmndi:BPMNShape>
  50. <bpmndi:BPMNEdge id="SequenceFlow_0givraz_di" bpmnElement="SequenceFlow_0givraz">
  51. <di:waypoint xsi:type="dc:Point" x="388" y="120" />
  52. <di:waypoint xsi:type="dc:Point" x="474" y="120" />
  53. <bpmndi:BPMNLabel>
  54. <dc:Bounds x="386" y="95" width="90" height="20" />
  55. </bpmndi:BPMNLabel>
  56. </bpmndi:BPMNEdge>
  57. </bpmndi:BPMNPlane>
  58. </bpmndi:BPMNDiagram>
  59. </bpmn:definitions>