﻿<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:yaoqiang="http://bpmn.sourceforge.net" exporter="Yaoqiang BPMN Editor" exporterVersion="5.3" expressionLanguage="http://www.w3.org/1999/XPath" id="_1537901028711" name="" targetNamespace="http://sourceforge.net/bpmn/definitions/_1537901028711" typeLanguage="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL http://bpmn.sourceforge.net/schemas/BPMN20.xsd">
  <process id="PROCESS_1" isClosed="false" isExecutable="true" processType="None">
    <extensionElements>
      <yaoqiang:description/>
      <yaoqiang:pageFormat height="841.8897637795276" imageableHeight="831.8897637795276" imageableWidth="588.1102362204724" imageableX="5.0" imageableY="5.0" orientation="0" width="598.1102362204724"/>
      <yaoqiang:page background="#FFFFFF" horizontalCount="1" verticalCount="1"/>
    </extensionElements>
    <scriptTask completionQuantity="1" id="_3" isForCompensation="false" name="Generate Random" scriptFormat="application/x-php" startQuantity="1">
      <incoming>_4</incoming>
      <outgoing>_8</outgoing>
      <script><![CDATA[<?php
$random = rand(0, 50);
return [
    'random' => $random
];]]></script>
    </scriptTask>
    <sequenceFlow id="_4" sourceRef="_2" targetRef="_3"/>
    <startEvent id="_2" isInterrupting="true" parallelMultiple="false">
      <outgoing>_4</outgoing>
      <outputSet/>
    </startEvent>
    <scriptTask completionQuantity="1" id="_7" isForCompensation="false" name="Calculate" scriptFormat="application/x-php" startQuantity="1">
      <incoming>_8</incoming>
      <outgoing>_10</outgoing>
      <script><![CDATA[<?php
//Extract process data
extract($data);
$double = $random * 2;
return [
    'double' => $double
];]]></script>
    </scriptTask>
    <sequenceFlow id="_8" sourceRef="_3" targetRef="_7"/>
    <endEvent id="_9">
      <incoming>_10</incoming>
      <inputSet/>
    </endEvent>
    <sequenceFlow id="_10" sourceRef="_7" targetRef="_9"/>
  </process>
  <bpmndi:BPMNDiagram id="Yaoqiang_Diagram-PROCESS_1" name="Untitled Diagram" resolution="96.0">
    <bpmndi:BPMNPlane bpmnElement="PROCESS_1">
      <bpmndi:BPMNShape bpmnElement="_3" id="Yaoqiang-_3">
        <dc:Bounds height="55.0" width="103.0" x="201.0" y="90.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="18.96" width="101.0" x="202.0" y="110.02"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_2" id="Yaoqiang-_2">
        <dc:Bounds height="32.0" width="32.0" x="116.5" y="101.25"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="18.96" width="6.0" x="129.5" y="141.77"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_7" id="Yaoqiang-_7">
        <dc:Bounds height="55.0" width="85.0" x="350.0" y="89.75"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="18.96" width="55.0" x="365.0" y="109.77"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_9" id="Yaoqiang-_9">
        <dc:Bounds height="32.0" width="32.0" x="481.25" y="101.25"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="18.96" width="6.0" x="494.25" y="141.77"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="_10" id="Yaoqiang-_10">
        <di:waypoint x="435.0" y="117.25"/>
        <di:waypoint x="481.00195324422384" y="117.25"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="18.96" width="6.0" x="455.0" y="107.77"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_8" id="Yaoqiang-_8">
        <di:waypoint x="304.0" y="117.5"/>
        <di:waypoint x="350.0" y="117.25"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="18.96" width="6.0" x="324.0" y="107.9"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_4" id="Yaoqiang-_4">
        <di:waypoint x="148.99804675577616" y="117.25"/>
        <di:waypoint x="201.0" y="117.5"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="18.96" width="6.0" x="171.87" y="108.02"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>
