Skip to content

Instantly share code, notes, and snippets.

@ooharak
Created March 6, 2013 09:08
Show Gist options
  • Select an option

  • Save ooharak/5097896 to your computer and use it in GitHub Desktop.

Select an option

Save ooharak/5097896 to your computer and use it in GitHub Desktop.
BPMN2.0の例(お絵かきしただけであり動かない)
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:_1="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmn2="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" id="_xFXk8IYtEeKow-hlhZjMWg">
<process id="Process_1" name="社内報掲載プロセス">
<laneSet id="LaneSet_1" name="利用者区分">
<lane id="Lane_2" name="執筆者"/>
<lane id="Lane_3" name="承認者"/>
<lane id="Lane_4" name="読者"/>
<lane id="Lane_1" name="Lane 1">
<flowNodeRef>UserTask_1</flowNodeRef>
<flowNodeRef>UserTask_3</flowNodeRef>
</lane>
<lane id="Lane_8" name="Lane 8">
<flowNodeRef>ServiceTask_1</flowNodeRef>
<flowNodeRef>ServiceTask_2</flowNodeRef>
<flowNodeRef>ServiceTask_3</flowNodeRef>
<flowNodeRef>ServiceTask_4</flowNodeRef>
</lane>
<lane id="Lane_9" name="Lane 9">
<flowNodeRef>UserTask_2</flowNodeRef>
<flowNodeRef>ExclusiveGateway_1</flowNodeRef>
</lane>
<lane id="Lane_10" name="Lane 10">
<flowNodeRef>UserTask_4</flowNodeRef>
</lane>
</laneSet>
<startEvent id="StartEvent_1" name="Start Event 1">
<outgoing>SequenceFlow_1</outgoing>
</startEvent>
<sequenceFlow id="SequenceFlow_1" sourceRef="StartEvent_1" targetRef="UserTask_1"/>
<serviceTask id="ServiceTask_1" name="登録">
<incoming>SequenceFlow_3</incoming>
<outgoing>SequenceFlow_4</outgoing>
</serviceTask>
<sequenceFlow id="SequenceFlow_4" name="" sourceRef="ServiceTask_1" targetRef="UserTask_2"/>
<userTask id="UserTask_4" name="閲覧">
<incoming>SequenceFlow_11</incoming>
<outgoing>SequenceFlow_12</outgoing>
</userTask>
<userTask id="UserTask_1" name="執筆">
<incoming>SequenceFlow_1</incoming>
<outgoing>SequenceFlow_3</outgoing>
</userTask>
<sequenceFlow id="SequenceFlow_3" name="" sourceRef="UserTask_1" targetRef="ServiceTask_1"/>
<serviceTask id="ServiceTask_2" name="更新">
<incoming>SequenceFlow_7</incoming>
<outgoing>SequenceFlow_9</outgoing>
</serviceTask>
<sequenceFlow id="SequenceFlow_9" name="" sourceRef="ServiceTask_2" targetRef="UserTask_2"/>
<userTask id="UserTask_2" name="審査">
<incoming>SequenceFlow_4</incoming>
<incoming>SequenceFlow_9</incoming>
<outgoing>SequenceFlow_6</outgoing>
</userTask>
<sequenceFlow id="SequenceFlow_6" name="" sourceRef="UserTask_2" targetRef="ExclusiveGateway_1"/>
<exclusiveGateway id="ExclusiveGateway_1" name="審査結果判定" gatewayDirection="Diverging">
<incoming>SequenceFlow_6</incoming>
<outgoing>SequenceFlow_8</outgoing>
<outgoing>SequenceFlow_10</outgoing>
<outgoing>SequenceFlow_2</outgoing>
</exclusiveGateway>
<sequenceFlow id="SequenceFlow_8" name="Again" sourceRef="ExclusiveGateway_1" targetRef="UserTask_3"/>
<sequenceFlow id="SequenceFlow_10" name="OK" sourceRef="ExclusiveGateway_1" targetRef="ServiceTask_3"/>
<userTask id="UserTask_3" name="修正">
<incoming>SequenceFlow_8</incoming>
<outgoing>SequenceFlow_7</outgoing>
</userTask>
<sequenceFlow id="SequenceFlow_7" sourceRef="UserTask_3" targetRef="ServiceTask_2"/>
<serviceTask id="ServiceTask_3" name="公開">
<incoming>SequenceFlow_10</incoming>
<outgoing>SequenceFlow_11</outgoing>
<ioSpecification id="InputOutputSpecification_1"/>
</serviceTask>
<sequenceFlow id="SequenceFlow_11" name="" sourceRef="ServiceTask_3" targetRef="UserTask_4"/>
<serviceTask id="ServiceTask_4" name="却下">
<incoming>SequenceFlow_2</incoming>
<outgoing>SequenceFlow_14</outgoing>
</serviceTask>
<sequenceFlow id="SequenceFlow_2" name="NG" sourceRef="ExclusiveGateway_1" targetRef="ServiceTask_4"/>
<endEvent id="EndEvent_1" name="End Event 1">
<incoming>SequenceFlow_13</incoming>
</endEvent>
<parallelGateway id="ParallelGateway_1" name="Parallel Gateway 1" gatewayDirection="Converging">
<incoming>SequenceFlow_12</incoming>
<incoming>SequenceFlow_14</incoming>
<outgoing>SequenceFlow_13</outgoing>
</parallelGateway>
<sequenceFlow id="SequenceFlow_12" name="" sourceRef="UserTask_4" targetRef="ParallelGateway_1"/>
<sequenceFlow id="SequenceFlow_13" name="" sourceRef="ParallelGateway_1" targetRef="EndEvent_1"/>
<sequenceFlow id="SequenceFlow_14" name="" sourceRef="ServiceTask_4" targetRef="ParallelGateway_1"/>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1" name="社内報掲載プロセス">
<bpmndi:BPMNPlane id="BPMNPlane_Process_1" bpmnElement="Process_1">
<bpmndi:BPMNShape id="BPMNShape_StartEvent_1" bpmnElement="StartEvent_1">
<dc:Bounds height="36.0" width="36.0" x="22.0" y="12.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_UserTask_1" bpmnElement="UserTask_1">
<dc:Bounds height="50.0" width="110.0" x="80.0" y="94.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="BPMNShape_StartEvent_1" targetElement="BPMNShape_UserTask_1">
<di:waypoint xsi:type="dc:Point" x="40.0" y="48.0"/>
<di:waypoint xsi:type="dc:Point" x="80.0" y="119.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_Lane_2" isHorizontal="true">
<dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_Lane_3" isHorizontal="true">
<dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_UserTask_2" bpmnElement="UserTask_2">
<dc:Bounds height="50.0" width="110.0" x="310.0" y="300.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_ServiceTask_1" bpmnElement="ServiceTask_1">
<dc:Bounds height="50.0" width="110.0" x="170.0" y="193.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="BPMNShape_UserTask_1" targetElement="BPMNShape_ServiceTask_1">
<di:waypoint xsi:type="dc:Point" x="190.0" y="119.0"/>
<di:waypoint xsi:type="dc:Point" x="170.0" y="218.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="BPMNShape_ServiceTask_1" targetElement="BPMNShape_UserTask_2">
<di:waypoint xsi:type="dc:Point" x="280.0" y="218.0"/>
<di:waypoint xsi:type="dc:Point" x="310.0" y="325.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_ExclusiveGateway_1" bpmnElement="ExclusiveGateway_1" isMarkerVisible="true">
<dc:Bounds height="50.0" width="50.0" x="460.0" y="300.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="BPMNShape_UserTask_2" targetElement="BPMNShape_ExclusiveGateway_1">
<di:waypoint xsi:type="dc:Point" x="420.0" y="325.0"/>
<di:waypoint xsi:type="dc:Point" x="460.0" y="325.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_UserTask_3" bpmnElement="UserTask_3">
<dc:Bounds height="50.0" width="110.0" x="430.0" y="94.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_ServiceTask_2" bpmnElement="ServiceTask_2">
<dc:Bounds height="50.0" width="110.0" x="340.0" y="193.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="BPMNShape_UserTask_3" targetElement="BPMNShape_ServiceTask_2">
<di:waypoint xsi:type="dc:Point" x="485.0" y="144.0"/>
<di:waypoint xsi:type="dc:Point" x="395.0" y="193.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_8" sourceElement="BPMNShape_ExclusiveGateway_1" targetElement="BPMNShape_UserTask_3">
<di:waypoint xsi:type="dc:Point" x="485.0" y="300.0"/>
<di:waypoint xsi:type="dc:Point" x="485.0" y="144.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="BPMNShape_ServiceTask_2" targetElement="BPMNShape_UserTask_2">
<di:waypoint xsi:type="dc:Point" x="395.0" y="243.0"/>
<di:waypoint xsi:type="dc:Point" x="365.0" y="300.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_ServiceTask_3" bpmnElement="ServiceTask_3">
<dc:Bounds height="50.0" width="110.0" x="470.0" y="193.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_10" sourceElement="BPMNShape_ExclusiveGateway_1" targetElement="BPMNShape_ServiceTask_3">
<di:waypoint xsi:type="dc:Point" x="485.0" y="300.0"/>
<di:waypoint xsi:type="dc:Point" x="525.0" y="243.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_UserTask_4" bpmnElement="UserTask_4">
<dc:Bounds height="50.0" width="110.0" x="440.0" y="400.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="SequenceFlow_11" sourceElement="BPMNShape_ServiceTask_3" targetElement="BPMNShape_UserTask_4">
<di:waypoint xsi:type="dc:Point" x="525.0" y="243.0"/>
<di:waypoint xsi:type="dc:Point" x="495.0" y="400.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_Lane_1" bpmnElement="Lane_1" isHorizontal="true">
<dc:Bounds height="100.0" width="600.0" x="48.0" y="68.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_Lane_7" bpmnElement="Lane_8" isHorizontal="true">
<dc:Bounds height="100.0" width="600.0" x="49.0" y="167.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_Lane_8" bpmnElement="Lane_9" isHorizontal="true">
<dc:Bounds height="100.0" width="600.0" x="49.0" y="263.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_Lane_9" bpmnElement="Lane_10" isHorizontal="true">
<dc:Bounds height="100.0" width="600.0" x="49.0" y="362.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_ServiceTask_4" bpmnElement="ServiceTask_4">
<dc:Bounds height="50.0" width="110.0" x="595.0" y="193.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="BPMNShape_ExclusiveGateway_1" targetElement="BPMNShape_ServiceTask_4">
<di:waypoint xsi:type="dc:Point" x="511.0" y="325.0"/>
<di:waypoint xsi:type="dc:Point" x="595.0" y="218.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_EndEvent_1" bpmnElement="EndEvent_1">
<dc:Bounds height="36.0" width="36.0" x="753.0" y="394.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_ParallelGateway_1" bpmnElement="ParallelGateway_1">
<dc:Bounds height="50.0" width="50.0" x="735.0" y="305.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_12" bpmnElement="SequenceFlow_12" sourceElement="BPMNShape_UserTask_4" targetElement="BPMNShape_ParallelGateway_1">
<di:waypoint xsi:type="dc:Point" x="550.0" y="425.0"/>
<di:waypoint xsi:type="dc:Point" x="735.0" y="330.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_13" bpmnElement="SequenceFlow_13" sourceElement="BPMNShape_ParallelGateway_1" targetElement="BPMNShape_EndEvent_1">
<di:waypoint xsi:type="dc:Point" x="760.0" y="356.0"/>
<di:waypoint xsi:type="dc:Point" x="771.0" y="394.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_14" bpmnElement="SequenceFlow_14" sourceElement="BPMNShape_ServiceTask_4" targetElement="BPMNShape_ParallelGateway_1">
<di:waypoint xsi:type="dc:Point" x="705.0" y="218.0"/>
<di:waypoint xsi:type="dc:Point" x="760.0" y="305.0"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment