<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" targetNamespace="http://www.intra-mart.jp/im_bpm" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <bpmn:collaboration id="Collaboration">
    <bpmn:participant id="pool_1" name="タイマで開始するプロセス" processRef="event_timer_usage_start_process"/>
    <bpmn:participant id="pool_2" name="タイマ境界イベントのプロセス" processRef="event_timer_usage_boundary_process"/>
    <bpmn:participant id="pool_3" name="タイマキャッチイベントのプロセス" processRef="event_timer_usage_intermediate_process"/>
  </bpmn:collaboration>
  <bpmn:process id="event_timer_usage_start_process" name="タイマで開始するプロセス" activiti:notUseBusinessKey="false" activiti:candidateStarterUsers="aoyagi" isExecutable="true">
    <bpmn:laneSet id="laneSet_event_timer_usage_start_process">
      <bpmn:lane id="swimlane_1" activiti:color="ffff00" name="レーン">
        <bpmn:flowNodeRef>timer-start-event_1</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>user-task_1</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>end-event_1</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:startEvent id="timer-start-event_1" name="タイマ開始">
      <bpmn:timerEventDefinition>
        <bpmn:timeCycle xsi:type="bpmn:tExpression">R3/PT3M</bpmn:timeCycle>
      </bpmn:timerEventDefinition>
    </bpmn:startEvent>
    <bpmn:userTask id="user-task_1" name="タイマで開始されたユーザタスク" activiti:color="bbdefb" activiti:assignee="aoyagi"/>
    <bpmn:endEvent id="end-event_1" name="終了"/>
    <bpmn:sequenceFlow id="sequence-flow_1" sourceRef="timer-start-event_1" targetRef="user-task_1"/>
    <bpmn:sequenceFlow id="sequence-flow_2" sourceRef="user-task_1" targetRef="end-event_1"/>
  </bpmn:process>
  <bpmn:process id="event_timer_usage_boundary_process" name="タイマ境界イベントのプロセス" activiti:notUseBusinessKey="false" activiti:candidateStarterUsers="aoyagi" isExecutable="true">
    <bpmn:laneSet id="laneSet_event_timer_usage_boundary_process">
      <bpmn:lane id="swimlane_2" activiti:color="7fff00" name="レーン">
        <bpmn:flowNodeRef>start-event_1</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>user-task_2</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>timer-boundary_1</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>end-event_2</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>user-task_3</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>end-event_3</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:startEvent id="start-event_1" name="開始"/>
    <bpmn:userTask id="user-task_2" name="タイマ境界イベントのユーザタスク" activiti:color="bbdefb" activiti:assignee="aoyagi"/>
    <bpmn:boundaryEvent id="timer-boundary_1" name="タイマ" cancelActivity="true" attachedToRef="user-task_2">
      <bpmn:timerEventDefinition>
        <bpmn:timeDuration xsi:type="bpmn:tExpression">PT5M</bpmn:timeDuration>
      </bpmn:timerEventDefinition>
    </bpmn:boundaryEvent>
    <bpmn:endEvent id="end-event_2" name="終了"/>
    <bpmn:userTask id="user-task_3" name="タイマ境界イベントの次のユーザタスク" activiti:color="bbdefb" activiti:assignee="aoyagi"/>
    <bpmn:endEvent id="end-event_3" name="終了"/>
    <bpmn:sequenceFlow id="sequence-flow_3" sourceRef="start-event_1" targetRef="user-task_2"/>
    <bpmn:sequenceFlow id="sequence-flow_4" sourceRef="user-task_2" targetRef="end-event_2"/>
    <bpmn:sequenceFlow id="sequence-flow_5" sourceRef="timer-boundary_1" targetRef="user-task_3"/>
    <bpmn:sequenceFlow id="sequence-flow_6" sourceRef="user-task_3" targetRef="end-event_3"/>
  </bpmn:process>
  <bpmn:process id="event_timer_usage_intermediate_process" name="タイマキャッチイベントのプロセス" activiti:notUseBusinessKey="false" activiti:candidateStarterUsers="aoyagi" isExecutable="true">
    <bpmn:laneSet id="laneSet_event_timer_usage_intermediate_process">
      <bpmn:lane id="swimlane_3" activiti:color="00ffff" name="レーン">
        <bpmn:flowNodeRef>start-event_2</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>timer-catching-event_1</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>user-task_4</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>end-event_4</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>script-task_1</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:startEvent id="start-event_2" name="開始"/>
    <bpmn:intermediateCatchEvent id="timer-catching-event_1" name="タイマキャッチイベント">
      <bpmn:timerEventDefinition>
        <bpmn:timeDate xsi:type="bpmn:tExpression">${dateTime}</bpmn:timeDate>
      </bpmn:timerEventDefinition>
    </bpmn:intermediateCatchEvent>
    <bpmn:userTask id="user-task_4" name="タイマキャッチイベントの次のユーザタスク" activiti:color="bbdefb" activiti:assignee="aoyagi"/>
    <bpmn:endEvent id="end-event_4" name="終了"/>
    <bpmn:scriptTask id="script-task_1" name="時間を作成するスクリプトタスク" activiti:color="fff9c4" activiti:autoStoreVariables="false" scriptFormat="im_javascript">    <bpmn:script><![CDATA[function run(variables, execution, entity) {
  var cal = java.util.Calendar.getInstance();

  cal.set(java.util.Calendar.HOUR_OF_DAY, 15);
  cal.set(java.util.Calendar.MINUTE, 0);
  cal.set(java.util.Calendar.SECOND, 0);

  entity.setVariable('dateTime', cal.getTime());
}]]></bpmn:script>
</bpmn:scriptTask>
    <bpmn:sequenceFlow id="sequence-flow_9" sourceRef="user-task_4" targetRef="end-event_4"/>
    <bpmn:sequenceFlow id="sequence-flow_10" sourceRef="start-event_2" targetRef="script-task_1"/>
    <bpmn:sequenceFlow id="sequence-flow_8" sourceRef="timer-catching-event_1" targetRef="user-task_4"/>
    <bpmn:sequenceFlow id="sequence-flow_11" sourceRef="script-task_1" targetRef="timer-catching-event_1"/>
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_Collaboration">
    <bpmndi:BPMNPlane id="BPMNPlane_Collaboration" bpmnElement="Collaboration">
      <bpmndi:BPMNShape id="BPMNShape_pool_1" bpmnElement="pool_1">
        <dc:Bounds x="140" y="40" width="600" height="200"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_swimlane_1" bpmnElement="swimlane_1">
        <dc:Bounds x="170" y="40" width="570" height="200"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_timer-start-event_1" bpmnElement="timer-start-event_1">
        <dc:Bounds x="230" y="120" width="35" height="35"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_user-task_1" bpmnElement="user-task_1">
        <dc:Bounds x="340" y="97.5" width="100" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_end-event_1" bpmnElement="end-event_1">
        <dc:Bounds x="530" y="120" width="35" height="35"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_sequence-flow_1" bpmnElement="sequence-flow_1">
        <di:waypoint xsi:type="dc:Point" x="265" y="137.5"/>
        <di:waypoint xsi:type="dc:Point" x="340" y="137.5"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_sequence-flow_2" bpmnElement="sequence-flow_2">
        <di:waypoint xsi:type="dc:Point" x="440" y="137.5"/>
        <di:waypoint xsi:type="dc:Point" x="530" y="137.5"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="BPMNShape_pool_2" bpmnElement="pool_2">
        <dc:Bounds x="140" y="260" width="600" height="200"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_swimlane_2" bpmnElement="swimlane_2">
        <dc:Bounds x="170" y="260" width="570" height="200"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_start-event_1" bpmnElement="start-event_1">
        <dc:Bounds x="230" y="300.5" width="35" height="35"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_user-task_2" bpmnElement="user-task_2">
        <dc:Bounds x="340" y="280" width="100" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_timer-boundary_1" bpmnElement="timer-boundary_1">
        <dc:Bounds x="380" y="350" width="29" height="29"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_end-event_2" bpmnElement="end-event_2">
        <dc:Bounds x="530" y="303" width="35" height="35"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_user-task_3" bpmnElement="user-task_3">
        <dc:Bounds x="440" y="370" width="100" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_end-event_3" bpmnElement="end-event_3">
        <dc:Bounds x="590" y="392.5" width="35" height="35"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_sequence-flow_3" bpmnElement="sequence-flow_3">
        <di:waypoint xsi:type="dc:Point" x="265" y="318.2456140350877"/>
        <di:waypoint xsi:type="dc:Point" x="340" y="319.29824561403507"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_sequence-flow_4" bpmnElement="sequence-flow_4">
        <di:waypoint xsi:type="dc:Point" x="440" y="320.1587301587302"/>
        <di:waypoint xsi:type="dc:Point" x="530" y="320.44444444444446"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_sequence-flow_5" bpmnElement="sequence-flow_5">
        <di:waypoint xsi:type="dc:Point" x="409" y="371.4083769633508"/>
        <di:waypoint xsi:type="dc:Point" x="440" y="386.1780104712042"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_sequence-flow_6" bpmnElement="sequence-flow_6">
        <di:waypoint xsi:type="dc:Point" x="540" y="410"/>
        <di:waypoint xsi:type="dc:Point" x="590" y="410"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="BPMNShape_pool_3" bpmnElement="pool_3">
        <dc:Bounds x="140" y="480" width="600" height="200"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_swimlane_3" bpmnElement="swimlane_3">
        <dc:Bounds x="170" y="480" width="570" height="200"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_start-event_2" bpmnElement="start-event_2">
        <dc:Bounds x="213" y="562.5" width="35" height="35"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_timer-catching-event_1" bpmnElement="timer-catching-event_1">
        <dc:Bounds x="430" y="562.5" width="35" height="35"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_user-task_4" bpmnElement="user-task_4">
        <dc:Bounds x="515" y="540" width="100" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_end-event_4" bpmnElement="end-event_4">
        <dc:Bounds x="670" y="562.5" width="35" height="35"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_script-task_1" bpmnElement="script-task_1">
        <dc:Bounds x="280.5" y="540" width="100" height="80"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_sequence-flow_9" bpmnElement="sequence-flow_9">
        <di:waypoint xsi:type="dc:Point" x="615" y="580"/>
        <di:waypoint xsi:type="dc:Point" x="670" y="580"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_sequence-flow_10" bpmnElement="sequence-flow_10">
        <di:waypoint xsi:type="dc:Point" x="248" y="580"/>
        <di:waypoint xsi:type="dc:Point" x="280.5" y="580"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_sequence-flow_8" bpmnElement="sequence-flow_8">
        <di:waypoint xsi:type="dc:Point" x="465" y="580"/>
        <di:waypoint xsi:type="dc:Point" x="515" y="580"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_sequence-flow_11" bpmnElement="sequence-flow_11">
        <di:waypoint xsi:type="dc:Point" x="380.5" y="580"/>
        <di:waypoint xsi:type="dc:Point" x="430" y="580"/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>