Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <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">
- <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">
- <bpmn2:property id="reason" itemSubjectRef="ItemDefinition_3348"/>
- <bpmn2:startEvent id="StartEvent_1" name="StartProcess">
- <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
- </bpmn2:startEvent>
- <bpmn2:scriptTask id="ScriptTask_1" name="Script Task 1" scriptFormat="http://www.java.com/java">
- <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
- <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
- <bpmn2:script>System.out.println("Zarejestrowano nowa reklamacje: " + kcontext.getVariable("reason"));</bpmn2:script>
- </bpmn2:scriptTask>
- <bpmn2:sequenceFlow id="SequenceFlow_1" tns:priority="1" name="" sourceRef="StartEvent_1" targetRef="ScriptTask_1"/>
- <bpmn2:endEvent id="EndEvent_1" name="">
- <bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>
- </bpmn2:endEvent>
- <bpmn2:userTask id="UserTask_1" name="Moderator accepts">
- <bpmn2:extensionElements>
- <tns:onEntry-script scriptFormat="http://www.java.com/java">
- <tns:script></tns:script>
- </tns:onEntry-script>
- <tns:onExit-script scriptFormat="http://www.java.com/java">
- <tns:script></tns:script>
- </tns:onExit-script>
- </bpmn2:extensionElements>
- <bpmn2:documentation id="Documentation_1">Wiadomo, ze klienci to buraki, wiec moderator musi najpierw zatwierdzic reklamacje.</bpmn2:documentation>
- <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
- <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
- <bpmn2:ioSpecification id="_InputOutputSpecification_3">
- <bpmn2:dataInput id="_DataInput_9" name="TaskName"/>
- <bpmn2:dataInput id="_DataInput_10" name="Priority"/>
- <bpmn2:dataInput id="_DataInput_11" name="Comment"/>
- <bpmn2:dataInput id="_DataInput_12" name="GroupId"/>
- <bpmn2:dataInput id="_DataInput_13" name="Skippable"/>
- <bpmn2:dataInput id="_DataInput_14" name="Content"/>
- <bpmn2:dataInput id="_DataInput_15" name="Locale"/>
- <bpmn2:dataInput id="DataInput_1" itemSubjectRef="ItemDefinition_3348" name="taskReason"/>
- <bpmn2:dataInput id="DataInput_2" itemSubjectRef="ItemDefinition_3348" name=""/>
- <bpmn2:inputSet id="_InputSet_3" name="Input Set 3">
- <bpmn2:dataInputRefs>_DataInput_9</bpmn2:dataInputRefs>
- <bpmn2:dataInputRefs>_DataInput_10</bpmn2:dataInputRefs>
- <bpmn2:dataInputRefs>_DataInput_11</bpmn2:dataInputRefs>
- <bpmn2:dataInputRefs>_DataInput_12</bpmn2:dataInputRefs>
- <bpmn2:dataInputRefs>_DataInput_13</bpmn2:dataInputRefs>
- <bpmn2:dataInputRefs>_DataInput_14</bpmn2:dataInputRefs>
- <bpmn2:dataInputRefs>_DataInput_15</bpmn2:dataInputRefs>
- <bpmn2:dataInputRefs>DataInput_1</bpmn2:dataInputRefs>
- <bpmn2:dataInputRefs>DataInput_2</bpmn2:dataInputRefs>
- </bpmn2:inputSet>
- </bpmn2:ioSpecification>
- <bpmn2:dataInputAssociation id="_DataInputAssociation_9">
- <bpmn2:targetRef>_DataInput_9</bpmn2:targetRef>
- <bpmn2:assignment id="Assignment_4">
- <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_4">mod_accept</bpmn2:from>
- <bpmn2:to xsi:type="bpmn2:tFormalExpression">_DataInput_9</bpmn2:to>
- </bpmn2:assignment>
- </bpmn2:dataInputAssociation>
- <bpmn2:dataInputAssociation id="_DataInputAssociation_10">
- <bpmn2:targetRef>_DataInput_10</bpmn2:targetRef>
- </bpmn2:dataInputAssociation>
- <bpmn2:dataInputAssociation id="_DataInputAssociation_11">
- <bpmn2:targetRef>_DataInput_11</bpmn2:targetRef>
- <bpmn2:assignment id="Assignment_1">
- <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_1">Czy reklamacja sie nadaje?</bpmn2:from>
- <bpmn2:to xsi:type="bpmn2:tFormalExpression">_DataInput_11</bpmn2:to>
- </bpmn2:assignment>
- </bpmn2:dataInputAssociation>
- <bpmn2:dataInputAssociation id="_DataInputAssociation_12">
- <bpmn2:targetRef>_DataInput_12</bpmn2:targetRef>
- <bpmn2:assignment id="Assignment_2">
- <bpmn2:to xsi:type="bpmn2:tFormalExpression">_DataInput_12</bpmn2:to>
- </bpmn2:assignment>
- </bpmn2:dataInputAssociation>
- <bpmn2:dataInputAssociation id="_DataInputAssociation_13">
- <bpmn2:targetRef>_DataInput_13</bpmn2:targetRef>
- </bpmn2:dataInputAssociation>
- <bpmn2:dataInputAssociation id="_DataInputAssociation_14">
- <bpmn2:targetRef>_DataInput_14</bpmn2:targetRef>
- </bpmn2:dataInputAssociation>
- <bpmn2:dataInputAssociation id="_DataInputAssociation_15">
- <bpmn2:targetRef>_DataInput_15</bpmn2:targetRef>
- </bpmn2:dataInputAssociation>
- <bpmn2:dataInputAssociation id="DataInputAssociation_1">
- <bpmn2:targetRef>DataInput_1</bpmn2:targetRef>
- </bpmn2:dataInputAssociation>
- <bpmn2:dataInputAssociation id="DataInputAssociation_2">
- <bpmn2:targetRef>DataInput_2</bpmn2:targetRef>
- </bpmn2:dataInputAssociation>
- <bpmn2:potentialOwner id="PotentialOwner_1">
- <bpmn2:resourceAssignmentExpression id="ResourceAssignmentExpression_1">
- <bpmn2:formalExpression id="FormalExpression_6" language="http://www.java.com/java">janusz</bpmn2:formalExpression>
- </bpmn2:resourceAssignmentExpression>
- </bpmn2:potentialOwner>
- </bpmn2:userTask>
- <bpmn2:sequenceFlow id="SequenceFlow_3" tns:priority="1" name="" sourceRef="ScriptTask_1" targetRef="UserTask_1"/>
- <bpmn2:userTask id="UserTask_2" name="Operator Dispatches">
- <bpmn2:extensionElements>
- <tns:onEntry-script scriptFormat="http://www.java.com/java">
- <tns:script></tns:script>
- </tns:onEntry-script>
- <tns:onExit-script scriptFormat="http://www.java.com/java">
- <tns:script></tns:script>
- </tns:onExit-script>
- </bpmn2:extensionElements>
- <bpmn2:documentation id="Documentation_2">Jak juz trzeba to ktos zalatwia sprawe</bpmn2:documentation>
- <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>
- <bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>
- <bpmn2:ioSpecification id="_InputOutputSpecification_4">
- <bpmn2:dataInput id="_DataInput_16" name="TaskName"/>
- <bpmn2:dataInput id="_DataInput_17" name="Priority"/>
- <bpmn2:dataInput id="_DataInput_18" name="Comment"/>
- <bpmn2:dataInput id="_DataInput_19" name="GroupId"/>
- <bpmn2:dataInput id="_DataInput_20" name="Skippable"/>
- <bpmn2:dataInput id="_DataInput_21" name="Content"/>
- <bpmn2:dataInput id="_DataInput_22" name="Locale"/>
- <bpmn2:inputSet id="_InputSet_4" name="Input Set 4">
- <bpmn2:dataInputRefs>_DataInput_16</bpmn2:dataInputRefs>
- <bpmn2:dataInputRefs>_DataInput_17</bpmn2:dataInputRefs>
- <bpmn2:dataInputRefs>_DataInput_18</bpmn2:dataInputRefs>
- <bpmn2:dataInputRefs>_DataInput_19</bpmn2:dataInputRefs>
- <bpmn2:dataInputRefs>_DataInput_20</bpmn2:dataInputRefs>
- <bpmn2:dataInputRefs>_DataInput_21</bpmn2:dataInputRefs>
- <bpmn2:dataInputRefs>_DataInput_22</bpmn2:dataInputRefs>
- </bpmn2:inputSet>
- </bpmn2:ioSpecification>
- <bpmn2:dataInputAssociation id="_DataInputAssociation_16">
- <bpmn2:targetRef>_DataInput_16</bpmn2:targetRef>
- <bpmn2:assignment id="Assignment_3">
- <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_3">op-dispatch</bpmn2:from>
- <bpmn2:to xsi:type="bpmn2:tFormalExpression">_DataInput_16</bpmn2:to>
- </bpmn2:assignment>
- </bpmn2:dataInputAssociation>
- <bpmn2:dataInputAssociation id="_DataInputAssociation_17">
- <bpmn2:targetRef>_DataInput_17</bpmn2:targetRef>
- </bpmn2:dataInputAssociation>
- <bpmn2:dataInputAssociation id="_DataInputAssociation_18">
- <bpmn2:targetRef>_DataInput_18</bpmn2:targetRef>
- <bpmn2:assignment id="Assignment_5">
- <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_5">Zalatw reklamacje, dziadzie</bpmn2:from>
- <bpmn2:to xsi:type="bpmn2:tFormalExpression">_DataInput_18</bpmn2:to>
- </bpmn2:assignment>
- </bpmn2:dataInputAssociation>
- <bpmn2:dataInputAssociation id="_DataInputAssociation_19">
- <bpmn2:targetRef>_DataInput_19</bpmn2:targetRef>
- </bpmn2:dataInputAssociation>
- <bpmn2:dataInputAssociation id="_DataInputAssociation_20">
- <bpmn2:targetRef>_DataInput_20</bpmn2:targetRef>
- </bpmn2:dataInputAssociation>
- <bpmn2:dataInputAssociation id="_DataInputAssociation_21">
- <bpmn2:targetRef>_DataInput_21</bpmn2:targetRef>
- </bpmn2:dataInputAssociation>
- <bpmn2:dataInputAssociation id="_DataInputAssociation_22">
- <bpmn2:targetRef>_DataInput_22</bpmn2:targetRef>
- </bpmn2:dataInputAssociation>
- <bpmn2:potentialOwner id="PotentialOwner_2">
- <bpmn2:resourceAssignmentExpression id="ResourceAssignmentExpression_2">
- <bpmn2:formalExpression id="FormalExpression_7" language="http://www.java.com/java">bolek</bpmn2:formalExpression>
- </bpmn2:resourceAssignmentExpression>
- </bpmn2:potentialOwner>
- </bpmn2:userTask>
- <bpmn2:sequenceFlow id="SequenceFlow_5" tns:priority="1" name="" sourceRef="UserTask_1" targetRef="UserTask_2"/>
- <bpmn2:sequenceFlow id="SequenceFlow_6" tns:priority="1" name="" sourceRef="UserTask_2" targetRef="EndEvent_1"/>
- </bpmn2:process>
- <bpmn2:itemDefinition id="ItemDefinition_3348" itemKind="Physical" structureRef="String"/>
- <bpmndi:BPMNDiagram id="BPMNDiagram_1">
- <bpmndi:BPMNPlane id="BPMNPlane_Process_1" bpmnElement="com.akond.jbpm.webapp.sample">
- <bpmndi:BPMNShape id="BPMNShape_StartEvent_1" bpmnElement="StartEvent_1">
- <dc:Bounds height="36.0" width="36.0" x="22.0" y="150.0"/>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape id="BPMNShape_ScriptTask_1" bpmnElement="ScriptTask_1">
- <dc:Bounds height="50.0" width="110.0" x="79.0" y="143.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="58.0" y="168.0"/>
- <di:waypoint xsi:type="dc:Point" x="79.0" y="168.0"/>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNShape id="BPMNShape_EndEvent_1" bpmnElement="EndEvent_1">
- <dc:Bounds height="36.0" width="36.0" x="597.0" y="158.0"/>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNShape id="BPMNShape_UserTask_1" bpmnElement="UserTask_1">
- <dc:Bounds height="50.0" width="110.0" x="230.0" y="144.0"/>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="BPMNShape_ScriptTask_1" targetElement="BPMNShape_UserTask_1">
- <di:waypoint xsi:type="dc:Point" x="189.0" y="168.0"/>
- <di:waypoint xsi:type="dc:Point" x="230.0" y="169.0"/>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNShape id="BPMNShape_UserTask_2" bpmnElement="UserTask_2">
- <dc:Bounds height="50.0" width="110.0" x="410.0" y="151.0"/>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="BPMNShape_UserTask_1" targetElement="BPMNShape_UserTask_2">
- <di:waypoint xsi:type="dc:Point" x="340.0" y="169.0"/>
- <di:waypoint xsi:type="dc:Point" x="410.0" y="176.0"/>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="BPMNShape_UserTask_2" targetElement="BPMNShape_EndEvent_1">
- <di:waypoint xsi:type="dc:Point" x="520.0" y="176.0"/>
- <di:waypoint xsi:type="dc:Point" x="597.0" y="176.0"/>
- </bpmndi:BPMNEdge>
- </bpmndi:BPMNPlane>
- </bpmndi:BPMNDiagram>
- </bpmn2:definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement