<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.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.activiti.org/test">
  <process id="commonProcess" name="通用审批流程" isExecutable="true">
    <startEvent id="startevent" name="start"></startEvent>
    <endEvent id="endevent" name="end"></endEvent>
    <userTask id="apply" name="支部申请" activiti:assignee="#{applicant}"></userTask>
    <userTask id="assess" name="党总支审核" activiti:assignee="#{assessor}"></userTask>
    <sequenceFlow id="flow1" name="提交" sourceRef="startevent" targetRef="apply"></sequenceFlow>
    <sequenceFlow id="flow2" name="提交" sourceRef="apply" targetRef="assess">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 1}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow3" name="批准" sourceRef="assess" targetRef="endevent">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 1}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow4" name="驳回" sourceRef="assess" targetRef="apply">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 0}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow5" name="取消" sourceRef="apply" targetRef="endevent">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 0}]]></conditionExpression>
    </sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_commonProcess">
    <bpmndi:BPMNPlane bpmnElement="commonProcess" id="BPMNPlane_commonProcess">
      <bpmndi:BPMNShape bpmnElement="startevent" id="BPMNShape_startevent">
        <omgdc:Bounds height="35.0" width="35.0" x="140.0" y="249.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent" id="BPMNShape_endevent">
        <omgdc:Bounds height="35.0" width="35.0" x="760.0" y="249.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="apply" id="BPMNShape_apply">
        <omgdc:Bounds height="55.0" width="105.0" x="310.0" y="239.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="assess" id="BPMNShape_assess">
        <omgdc:Bounds height="55.0" width="105.0" x="530.0" y="239.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        <omgdi:waypoint x="175.0" y="266.0"></omgdi:waypoint>
        <omgdi:waypoint x="310.0" y="266.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="100.0" x="219.0" y="249.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
        <omgdi:waypoint x="415.0" y="266.0"></omgdi:waypoint>
        <omgdi:waypoint x="530.0" y="266.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="100.0" x="449.0" y="249.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
        <omgdi:waypoint x="635.0" y="266.0"></omgdi:waypoint>
        <omgdi:waypoint x="760.0" y="266.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="100.0" x="669.0" y="249.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
        <omgdi:waypoint x="582.0" y="294.0"></omgdi:waypoint>
        <omgdi:waypoint x="582.0" y="358.0"></omgdi:waypoint>
        <omgdi:waypoint x="472.0" y="358.0"></omgdi:waypoint>
        <omgdi:waypoint x="362.0" y="358.0"></omgdi:waypoint>
        <omgdi:waypoint x="362.0" y="294.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="100.0" x="450.0" y="339.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
        <omgdi:waypoint x="362.0" y="239.0"></omgdi:waypoint>
        <omgdi:waypoint x="362.0" y="177.0"></omgdi:waypoint>
        <omgdi:waypoint x="582.0" y="177.0"></omgdi:waypoint>
        <omgdi:waypoint x="777.0" y="177.0"></omgdi:waypoint>
        <omgdi:waypoint x="777.0" y="249.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="16.0" width="100.0" x="533.0" y="161.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>