Skip to content

Instantly share code, notes, and snippets.

@ooharak
Created March 8, 2013 08:45
Show Gist options
  • Select an option

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

Select an option

Save ooharak/5115055 to your computer and use it in GitHub Desktop.
BPMN examplesに載っていた例
<?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:_1_1="http://sample.bpmn2.org/bpmn2/sample/collaboration" 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:ns1="http://example.jbpm" id="Definitions_1" name="MyDefinition" targetNamespace="http://sample.bpmn2.org/bpmn2/sample/collaboration">
<import importType="http://www.java.com/javaTypes" location="example.jbpm.MailSender" namespace="http://example.jbpm"/>
<collaboration id="Collaboration_1" name="Default Collaboration">
<participant id="Participant_1" name="Trouble Ticket System" processRef="Process_1"/>
<participant id="Participant_2" name="Non-initiating Pool"/>
</collaboration>
<process id="Process_1" name="ExampleProcess">
<laneSet id="LaneSet_1" name="Lane Set 1">
<lane id="Lane_1" name="1st level support">
<flowNodeRef>StartEvent_1</flowNodeRef>
<flowNodeRef>ScriptTask_1</flowNodeRef>
<flowNodeRef>UserTask_1</flowNodeRef>
<flowNodeRef>ExclusiveGateway_2</flowNodeRef>
<flowNodeRef>SendTask_1</flowNodeRef>
<flowNodeRef>ScriptTask_2</flowNodeRef>
<flowNodeRef>EndEvent_1</flowNodeRef>
</lane>
<lane id="Lane_2" name="2nd level support">
<flowNodeRef>UserTask_2</flowNodeRef>
<flowNodeRef>ExclusiveGateway_3</flowNodeRef>
<flowNodeRef>ServiceTask_1</flowNodeRef>
</lane>
</laneSet>
<startEvent id="StartEvent_1" name="Start Event 1">
<outgoing>SequenceFlow_1</outgoing>
<messageEventDefinition id="MessageEventDefinition_1" messageRef="Message_5">
<operationRef>Operation_1</operationRef>
</messageEventDefinition>
</startEvent>
<scriptTask id="ScriptTask_1" name="Open Ticket" scriptFormat="java">
<incoming>SequenceFlow_1</incoming>
<outgoing>SequenceFlow_2</outgoing>
<script>System.out.println(&quot;--open ticket--&quot;);</script>
</scriptTask>
<sequenceFlow id="SequenceFlow_1" sourceRef="StartEvent_1" targetRef="ScriptTask_1"/>
<userTask id="UserTask_1" name="edit 1st level ticket">
<incoming>SequenceFlow_2</incoming>
<outgoing>SequenceFlow_4</outgoing>
</userTask>
<sequenceFlow id="SequenceFlow_2" sourceRef="ScriptTask_1" targetRef="UserTask_1"/>
<exclusiveGateway id="ExclusiveGateway_2" name="Result?" gatewayDirection="Diverging">
<incoming>SequenceFlow_4</incoming>
<outgoing>SequenceFlow_5</outgoing>
<outgoing>SequenceFlow_8</outgoing>
</exclusiveGateway>
<sequenceFlow id="SequenceFlow_4" sourceRef="UserTask_1" targetRef="ExclusiveGateway_2"/>
<sequenceFlow id="SequenceFlow_5" name="2nd level issue" sourceRef="ExclusiveGateway_2" targetRef="UserTask_2"/>
<userTask id="UserTask_2" name="edit 2nd level ticket">
<incoming>SequenceFlow_5</incoming>
<outgoing>SequenceFlow_6</outgoing>
</userTask>
<exclusiveGateway id="ExclusiveGateway_3" name="Result?" gatewayDirection="Diverging">
<incoming>SequenceFlow_6</incoming>
<outgoing>SequenceFlow_7</outgoing>
<outgoing>SequenceFlow_9</outgoing>
</exclusiveGateway>
<sequenceFlow id="SequenceFlow_6" sourceRef="UserTask_2" targetRef="ExclusiveGateway_3"/>
<sequenceFlow id="SequenceFlow_7" name="Fix In Next Release" sourceRef="ExclusiveGateway_3" targetRef="ServiceTask_1"/>
<sequenceFlow id="SequenceFlow_8" name="Issue Resolved" sourceRef="ExclusiveGateway_2" targetRef="SendTask_1"/>
<sendTask id="SendTask_1" name="send mail to account manager" implementation="example.jbpm.MailSender" messageRef="Message_5" operationRef="Operation_1">
<incoming>SequenceFlow_8</incoming>
<incoming>SequenceFlow_9</incoming>
<incoming>SequenceFlow_10</incoming>
<outgoing>SequenceFlow_11</outgoing>
</sendTask>
<sequenceFlow id="SequenceFlow_9" name="Issure Resolved" sourceRef="ExclusiveGateway_3" targetRef="SendTask_1"/>
<scriptTask id="ScriptTask_2" name="close ticket" scriptFormat="java">
<incoming>SequenceFlow_11</incoming>
<outgoing>SequenceFlow_12</outgoing>
<script>System.out.println(&quot;--close ticket--&quot;);</script>
</scriptTask>
<sequenceFlow id="SequenceFlow_11" sourceRef="SendTask_1" targetRef="ScriptTask_2"/>
<endEvent id="EndEvent_1" name="">
<incoming>SequenceFlow_12</incoming>
</endEvent>
<sequenceFlow id="SequenceFlow_12" sourceRef="ScriptTask_2" targetRef="EndEvent_1"/>
<serviceTask id="ServiceTask_1" name="insert issue into product backlog">
<incoming>SequenceFlow_7</incoming>
<outgoing>SequenceFlow_10</outgoing>
</serviceTask>
<sequenceFlow id="SequenceFlow_10" name="" sourceRef="ServiceTask_1" targetRef="SendTask_1"/>
</process>
<message id="Message_5" itemRef="ItemDefinition_6" name="Message 5"/>
<itemDefinition id="ItemDefinition_6" structureRef="ItemDefinition_6"/>
<itemDefinition id="ItemDefinition_1" structureRef="example.jbpm.MailSender"/>
<interface id="Interface_1" name="Interface 1">
<operation id="Operation_1" implementationRef="example.jbpm.MailSender" name="Operation 1">
<inMessageRef>Message_5</inMessageRef>
</operation>
</interface>
<bpmndi:BPMNDiagram id="BPMNDiagram_1" name="ExampleDiagram">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1">
<bpmndi:BPMNShape id="BPMNShape_1" bpmnElement="Participant_1" isHorizontal="true">
<dc:Bounds height="399.0" width="1160.0" x="100.0" y="100.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_2" bpmnElement="Participant_2" isHorizontal="true">
<dc:Bounds height="200.0" width="1000.0" x="100.0" y="550.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_Lane_1" bpmnElement="Lane_1" isHorizontal="true">
<dc:Bounds height="200.0" width="1130.0" x="130.0" y="100.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_Lane_2" bpmnElement="Lane_2" isHorizontal="true">
<dc:Bounds height="200.0" width="1130.0" x="130.0" y="299.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_StartEvent_1" bpmnElement="StartEvent_1">
<dc:Bounds height="36.0" width="36.0" x="172.0" y="162.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_ScriptTask_1" bpmnElement="ScriptTask_1">
<dc:Bounds height="50.0" width="110.0" x="258.0" y="155.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="BPMNShape_StartEvent_1" targetElement="BPMNShape_ScriptTask_1">
<di:waypoint xsi:type="dc:Point" x="208.0" y="180.0"/>
<di:waypoint xsi:type="dc:Point" x="258.0" y="180.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_UserTask_1" bpmnElement="UserTask_1">
<dc:Bounds height="50.0" width="110.0" x="418.0" y="155.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="BPMNShape_ScriptTask_1" targetElement="BPMNShape_UserTask_1">
<di:waypoint xsi:type="dc:Point" x="368.0" y="180.0"/>
<di:waypoint xsi:type="dc:Point" x="418.0" y="180.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_ExclusiveGateway_2" bpmnElement="ExclusiveGateway_2" isMarkerVisible="true">
<dc:Bounds height="50.0" width="50.0" x="578.0" y="155.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="BPMNShape_UserTask_1" targetElement="BPMNShape_ExclusiveGateway_2">
<di:waypoint xsi:type="dc:Point" x="528.0" y="180.0"/>
<di:waypoint xsi:type="dc:Point" x="578.0" y="180.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_UserTask_2" bpmnElement="UserTask_2">
<dc:Bounds height="50.0" width="110.0" x="550.0" y="340.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="BPMNShape_ExclusiveGateway_2" targetElement="BPMNShape_UserTask_2">
<di:waypoint xsi:type="dc:Point" x="603.0" y="206.0"/>
<di:waypoint xsi:type="dc:Point" x="605.0" y="340.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_ExclusiveGateway_3" bpmnElement="ExclusiveGateway_3" isMarkerVisible="true">
<dc:Bounds height="50.0" width="50.0" x="710.0" y="340.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="BPMNShape_UserTask_2" targetElement="BPMNShape_ExclusiveGateway_3">
<di:waypoint xsi:type="dc:Point" x="660.0" y="365.0"/>
<di:waypoint xsi:type="dc:Point" x="710.0" y="365.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_ServiceTask_1" bpmnElement="ServiceTask_1">
<dc:Bounds height="50.0" width="110.0" x="850.0" y="340.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="BPMNShape_ExclusiveGateway_3" targetElement="BPMNShape_ServiceTask_1">
<di:waypoint xsi:type="dc:Point" x="761.0" y="365.0"/>
<di:waypoint xsi:type="dc:Point" x="802.0" y="399.0"/>
<di:waypoint xsi:type="dc:Point" x="850.0" y="365.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_SendTask_1" bpmnElement="SendTask_1">
<dc:Bounds height="50.0" width="110.0" x="850.0" y="155.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_8" sourceElement="BPMNShape_ExclusiveGateway_2" targetElement="BPMNShape_SendTask_1">
<di:waypoint xsi:type="dc:Point" x="629.0" y="180.0"/>
<di:waypoint xsi:type="dc:Point" x="850.0" y="180.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="BPMNShape_ExclusiveGateway_3" targetElement="BPMNShape_SendTask_1">
<di:waypoint xsi:type="dc:Point" x="735.0" y="340.0"/>
<di:waypoint xsi:type="dc:Point" x="850.0" y="180.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_10" sourceElement="BPMNShape_ServiceTask_1" targetElement="BPMNShape_SendTask_1">
<di:waypoint xsi:type="dc:Point" x="905.0" y="340.0"/>
<di:waypoint xsi:type="dc:Point" x="905.0" y="205.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_ScriptTask_2" bpmnElement="ScriptTask_2">
<dc:Bounds height="50.0" width="110.0" x="1010.0" y="155.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="SequenceFlow_11" sourceElement="BPMNShape_SendTask_1" targetElement="BPMNShape_ScriptTask_2">
<di:waypoint xsi:type="dc:Point" x="960.0" y="180.0"/>
<di:waypoint xsi:type="dc:Point" x="1010.0" y="180.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_EndEvent_1" bpmnElement="EndEvent_1">
<dc:Bounds height="36.0" width="36.0" x="1170.0" y="162.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_12" bpmnElement="SequenceFlow_12" sourceElement="BPMNShape_ScriptTask_2" targetElement="BPMNShape_EndEvent_1">
<di:waypoint xsi:type="dc:Point" x="1120.0" y="180.0"/>
<di:waypoint xsi:type="dc:Point" x="1170.0" y="180.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