Advertisement
Guest User

simple jBPM workflow

a guest
Nov 27th, 2013
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 12.57 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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" xmlns:tns="http://www.jboss.org/drools" xmlns="http://www.jboss.org/drools" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd" id="Definition" expressionLanguage="http://www.mvel.org/2.0" targetNamespace="http://www.jboss.org/drools" typeLanguage="http://www.java.com/javaTypes">
  3.   <bpmn2:process id="com.akond.jbpm.webapp.sample" tns:version="1" tns:packageName="com.akond.jbpm.webapp" tns:adHoc="false" name="sample" isExecutable="true" processType="Private">
  4.     <bpmn2:property id="reason" itemSubjectRef="ItemDefinition_3348"/>
  5.     <bpmn2:startEvent id="StartEvent_1" name="StartProcess">
  6.       <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
  7.     </bpmn2:startEvent>
  8.     <bpmn2:scriptTask id="ScriptTask_1" name="Script Task 1" scriptFormat="http://www.java.com/java">
  9.       <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
  10.       <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
  11.       <bpmn2:script>System.out.println(&quot;Zarejestrowano nowa reklamacje: &quot; + kcontext.getVariable(&quot;reason&quot;));</bpmn2:script>
  12.     </bpmn2:scriptTask>
  13.     <bpmn2:sequenceFlow id="SequenceFlow_1" tns:priority="1" name="" sourceRef="StartEvent_1" targetRef="ScriptTask_1"/>
  14.     <bpmn2:endEvent id="EndEvent_1" name="">
  15.       <bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>
  16.     </bpmn2:endEvent>
  17.     <bpmn2:userTask id="UserTask_1" name="Moderator accepts">
  18.       <bpmn2:extensionElements>
  19.         <tns:onEntry-script scriptFormat="http://www.java.com/java">
  20.           <tns:script></tns:script>
  21.         </tns:onEntry-script>
  22.         <tns:onExit-script scriptFormat="http://www.java.com/java">
  23.           <tns:script></tns:script>
  24.         </tns:onExit-script>
  25.       </bpmn2:extensionElements>
  26.       <bpmn2:documentation id="Documentation_1">Wiadomo, ze klienci to buraki, wiec moderator musi najpierw zatwierdzic reklamacje.</bpmn2:documentation>
  27.       <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
  28.       <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
  29.       <bpmn2:ioSpecification id="_InputOutputSpecification_3">
  30.         <bpmn2:dataInput id="_DataInput_9" name="TaskName"/>
  31.         <bpmn2:dataInput id="_DataInput_10" name="Priority"/>
  32.         <bpmn2:dataInput id="_DataInput_11" name="Comment"/>
  33.         <bpmn2:dataInput id="_DataInput_12" name="GroupId"/>
  34.         <bpmn2:dataInput id="_DataInput_13" name="Skippable"/>
  35.         <bpmn2:dataInput id="_DataInput_14" name="Content"/>
  36.         <bpmn2:dataInput id="_DataInput_15" name="Locale"/>
  37.         <bpmn2:dataInput id="DataInput_1" itemSubjectRef="ItemDefinition_3348" name="taskReason"/>
  38.         <bpmn2:dataInput id="DataInput_2" itemSubjectRef="ItemDefinition_3348" name=""/>
  39.         <bpmn2:inputSet id="_InputSet_3" name="Input Set 3">
  40.           <bpmn2:dataInputRefs>_DataInput_9</bpmn2:dataInputRefs>
  41.           <bpmn2:dataInputRefs>_DataInput_10</bpmn2:dataInputRefs>
  42.           <bpmn2:dataInputRefs>_DataInput_11</bpmn2:dataInputRefs>
  43.           <bpmn2:dataInputRefs>_DataInput_12</bpmn2:dataInputRefs>
  44.           <bpmn2:dataInputRefs>_DataInput_13</bpmn2:dataInputRefs>
  45.           <bpmn2:dataInputRefs>_DataInput_14</bpmn2:dataInputRefs>
  46.           <bpmn2:dataInputRefs>_DataInput_15</bpmn2:dataInputRefs>
  47.           <bpmn2:dataInputRefs>DataInput_1</bpmn2:dataInputRefs>
  48.           <bpmn2:dataInputRefs>DataInput_2</bpmn2:dataInputRefs>
  49.         </bpmn2:inputSet>
  50.       </bpmn2:ioSpecification>
  51.       <bpmn2:dataInputAssociation id="_DataInputAssociation_9">
  52.         <bpmn2:targetRef>_DataInput_9</bpmn2:targetRef>
  53.         <bpmn2:assignment id="Assignment_4">
  54.           <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_4">mod_accept</bpmn2:from>
  55.           <bpmn2:to xsi:type="bpmn2:tFormalExpression">_DataInput_9</bpmn2:to>
  56.         </bpmn2:assignment>
  57.       </bpmn2:dataInputAssociation>
  58.       <bpmn2:dataInputAssociation id="_DataInputAssociation_10">
  59.         <bpmn2:targetRef>_DataInput_10</bpmn2:targetRef>
  60.       </bpmn2:dataInputAssociation>
  61.       <bpmn2:dataInputAssociation id="_DataInputAssociation_11">
  62.         <bpmn2:targetRef>_DataInput_11</bpmn2:targetRef>
  63.         <bpmn2:assignment id="Assignment_1">
  64.           <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_1">Czy reklamacja sie nadaje?</bpmn2:from>
  65.           <bpmn2:to xsi:type="bpmn2:tFormalExpression">_DataInput_11</bpmn2:to>
  66.         </bpmn2:assignment>
  67.       </bpmn2:dataInputAssociation>
  68.       <bpmn2:dataInputAssociation id="_DataInputAssociation_12">
  69.         <bpmn2:targetRef>_DataInput_12</bpmn2:targetRef>
  70.         <bpmn2:assignment id="Assignment_2">
  71.           <bpmn2:to xsi:type="bpmn2:tFormalExpression">_DataInput_12</bpmn2:to>
  72.         </bpmn2:assignment>
  73.       </bpmn2:dataInputAssociation>
  74.       <bpmn2:dataInputAssociation id="_DataInputAssociation_13">
  75.         <bpmn2:targetRef>_DataInput_13</bpmn2:targetRef>
  76.       </bpmn2:dataInputAssociation>
  77.       <bpmn2:dataInputAssociation id="_DataInputAssociation_14">
  78.         <bpmn2:targetRef>_DataInput_14</bpmn2:targetRef>
  79.       </bpmn2:dataInputAssociation>
  80.       <bpmn2:dataInputAssociation id="_DataInputAssociation_15">
  81.         <bpmn2:targetRef>_DataInput_15</bpmn2:targetRef>
  82.       </bpmn2:dataInputAssociation>
  83.       <bpmn2:dataInputAssociation id="DataInputAssociation_1">
  84.         <bpmn2:targetRef>DataInput_1</bpmn2:targetRef>
  85.       </bpmn2:dataInputAssociation>
  86.       <bpmn2:dataInputAssociation id="DataInputAssociation_2">
  87.         <bpmn2:targetRef>DataInput_2</bpmn2:targetRef>
  88.       </bpmn2:dataInputAssociation>
  89.       <bpmn2:potentialOwner id="PotentialOwner_1">
  90.         <bpmn2:resourceAssignmentExpression id="ResourceAssignmentExpression_1">
  91.           <bpmn2:formalExpression id="FormalExpression_6" language="http://www.java.com/java">janusz</bpmn2:formalExpression>
  92.         </bpmn2:resourceAssignmentExpression>
  93.       </bpmn2:potentialOwner>
  94.     </bpmn2:userTask>
  95.     <bpmn2:sequenceFlow id="SequenceFlow_3" tns:priority="1" name="" sourceRef="ScriptTask_1" targetRef="UserTask_1"/>
  96.     <bpmn2:userTask id="UserTask_2" name="Operator Dispatches">
  97.       <bpmn2:extensionElements>
  98.         <tns:onEntry-script scriptFormat="http://www.java.com/java">
  99.           <tns:script></tns:script>
  100.         </tns:onEntry-script>
  101.         <tns:onExit-script scriptFormat="http://www.java.com/java">
  102.           <tns:script></tns:script>
  103.         </tns:onExit-script>
  104.       </bpmn2:extensionElements>
  105.       <bpmn2:documentation id="Documentation_2">Jak juz trzeba to ktos zalatwia sprawe</bpmn2:documentation>
  106.       <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>
  107.       <bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>
  108.       <bpmn2:ioSpecification id="_InputOutputSpecification_4">
  109.         <bpmn2:dataInput id="_DataInput_16" name="TaskName"/>
  110.         <bpmn2:dataInput id="_DataInput_17" name="Priority"/>
  111.         <bpmn2:dataInput id="_DataInput_18" name="Comment"/>
  112.         <bpmn2:dataInput id="_DataInput_19" name="GroupId"/>
  113.         <bpmn2:dataInput id="_DataInput_20" name="Skippable"/>
  114.         <bpmn2:dataInput id="_DataInput_21" name="Content"/>
  115.         <bpmn2:dataInput id="_DataInput_22" name="Locale"/>
  116.         <bpmn2:inputSet id="_InputSet_4" name="Input Set 4">
  117.           <bpmn2:dataInputRefs>_DataInput_16</bpmn2:dataInputRefs>
  118.           <bpmn2:dataInputRefs>_DataInput_17</bpmn2:dataInputRefs>
  119.           <bpmn2:dataInputRefs>_DataInput_18</bpmn2:dataInputRefs>
  120.           <bpmn2:dataInputRefs>_DataInput_19</bpmn2:dataInputRefs>
  121.           <bpmn2:dataInputRefs>_DataInput_20</bpmn2:dataInputRefs>
  122.           <bpmn2:dataInputRefs>_DataInput_21</bpmn2:dataInputRefs>
  123.           <bpmn2:dataInputRefs>_DataInput_22</bpmn2:dataInputRefs>
  124.         </bpmn2:inputSet>
  125.       </bpmn2:ioSpecification>
  126.       <bpmn2:dataInputAssociation id="_DataInputAssociation_16">
  127.         <bpmn2:targetRef>_DataInput_16</bpmn2:targetRef>
  128.         <bpmn2:assignment id="Assignment_3">
  129.           <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_3">op-dispatch</bpmn2:from>
  130.           <bpmn2:to xsi:type="bpmn2:tFormalExpression">_DataInput_16</bpmn2:to>
  131.         </bpmn2:assignment>
  132.       </bpmn2:dataInputAssociation>
  133.       <bpmn2:dataInputAssociation id="_DataInputAssociation_17">
  134.         <bpmn2:targetRef>_DataInput_17</bpmn2:targetRef>
  135.       </bpmn2:dataInputAssociation>
  136.       <bpmn2:dataInputAssociation id="_DataInputAssociation_18">
  137.         <bpmn2:targetRef>_DataInput_18</bpmn2:targetRef>
  138.         <bpmn2:assignment id="Assignment_5">
  139.           <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_5">Zalatw reklamacje, dziadzie</bpmn2:from>
  140.           <bpmn2:to xsi:type="bpmn2:tFormalExpression">_DataInput_18</bpmn2:to>
  141.         </bpmn2:assignment>
  142.       </bpmn2:dataInputAssociation>
  143.       <bpmn2:dataInputAssociation id="_DataInputAssociation_19">
  144.         <bpmn2:targetRef>_DataInput_19</bpmn2:targetRef>
  145.       </bpmn2:dataInputAssociation>
  146.       <bpmn2:dataInputAssociation id="_DataInputAssociation_20">
  147.         <bpmn2:targetRef>_DataInput_20</bpmn2:targetRef>
  148.       </bpmn2:dataInputAssociation>
  149.       <bpmn2:dataInputAssociation id="_DataInputAssociation_21">
  150.         <bpmn2:targetRef>_DataInput_21</bpmn2:targetRef>
  151.       </bpmn2:dataInputAssociation>
  152.       <bpmn2:dataInputAssociation id="_DataInputAssociation_22">
  153.         <bpmn2:targetRef>_DataInput_22</bpmn2:targetRef>
  154.       </bpmn2:dataInputAssociation>
  155.       <bpmn2:potentialOwner id="PotentialOwner_2">
  156.         <bpmn2:resourceAssignmentExpression id="ResourceAssignmentExpression_2">
  157.           <bpmn2:formalExpression id="FormalExpression_7" language="http://www.java.com/java">bolek</bpmn2:formalExpression>
  158.         </bpmn2:resourceAssignmentExpression>
  159.       </bpmn2:potentialOwner>
  160.     </bpmn2:userTask>
  161.     <bpmn2:sequenceFlow id="SequenceFlow_5" tns:priority="1" name="" sourceRef="UserTask_1" targetRef="UserTask_2"/>
  162.     <bpmn2:sequenceFlow id="SequenceFlow_6" tns:priority="1" name="" sourceRef="UserTask_2" targetRef="EndEvent_1"/>
  163.   </bpmn2:process>
  164.   <bpmn2:itemDefinition id="ItemDefinition_3348" itemKind="Physical" structureRef="String"/>
  165.   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
  166.     <bpmndi:BPMNPlane id="BPMNPlane_Process_1" bpmnElement="com.akond.jbpm.webapp.sample">
  167.       <bpmndi:BPMNShape id="BPMNShape_StartEvent_1" bpmnElement="StartEvent_1">
  168.         <dc:Bounds height="36.0" width="36.0" x="22.0" y="150.0"/>
  169.       </bpmndi:BPMNShape>
  170.       <bpmndi:BPMNShape id="BPMNShape_ScriptTask_1" bpmnElement="ScriptTask_1">
  171.         <dc:Bounds height="50.0" width="110.0" x="79.0" y="143.0"/>
  172.       </bpmndi:BPMNShape>
  173.       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="BPMNShape_StartEvent_1" targetElement="BPMNShape_ScriptTask_1">
  174.         <di:waypoint xsi:type="dc:Point" x="58.0" y="168.0"/>
  175.         <di:waypoint xsi:type="dc:Point" x="79.0" y="168.0"/>
  176.       </bpmndi:BPMNEdge>
  177.       <bpmndi:BPMNShape id="BPMNShape_EndEvent_1" bpmnElement="EndEvent_1">
  178.         <dc:Bounds height="36.0" width="36.0" x="597.0" y="158.0"/>
  179.       </bpmndi:BPMNShape>
  180.       <bpmndi:BPMNShape id="BPMNShape_UserTask_1" bpmnElement="UserTask_1">
  181.         <dc:Bounds height="50.0" width="110.0" x="230.0" y="144.0"/>
  182.       </bpmndi:BPMNShape>
  183.       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="BPMNShape_ScriptTask_1" targetElement="BPMNShape_UserTask_1">
  184.         <di:waypoint xsi:type="dc:Point" x="189.0" y="168.0"/>
  185.         <di:waypoint xsi:type="dc:Point" x="230.0" y="169.0"/>
  186.       </bpmndi:BPMNEdge>
  187.       <bpmndi:BPMNShape id="BPMNShape_UserTask_2" bpmnElement="UserTask_2">
  188.         <dc:Bounds height="50.0" width="110.0" x="410.0" y="151.0"/>
  189.       </bpmndi:BPMNShape>
  190.       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="BPMNShape_UserTask_1" targetElement="BPMNShape_UserTask_2">
  191.         <di:waypoint xsi:type="dc:Point" x="340.0" y="169.0"/>
  192.         <di:waypoint xsi:type="dc:Point" x="410.0" y="176.0"/>
  193.       </bpmndi:BPMNEdge>
  194.       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="BPMNShape_UserTask_2" targetElement="BPMNShape_EndEvent_1">
  195.         <di:waypoint xsi:type="dc:Point" x="520.0" y="176.0"/>
  196.         <di:waypoint xsi:type="dc:Point" x="597.0" y="176.0"/>
  197.       </bpmndi:BPMNEdge>
  198.     </bpmndi:BPMNPlane>
  199.   </bpmndi:BPMNDiagram>
  200. </bpmn2:definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement