0 Replies Latest reply on Feb 28, 2014 10:34 AM by Rahul Magdum

    cvc-complex-type.2.4.b: The content of element 'bpmn2:ioSpecification' is not complete. One of '{"http://www.omg.org/spec/BPMN/20100524/MODEL":dataInput, "http://www.omg.org/spec/BPMN/20100524/MODEL":dataOutput, "http://www.omg.org/spec/BPMN/20100524/MODE

    Rahul Magdum Novice

      I generate multi instance bpmn from eclipse IDE but while running it giving following error :

       

      2014-02-28 21:01:51,161 [main] ERROR (null: 26, 31): cvc-complex-type.2.4.b: The content of element 'bpmn2:ioSpecification' is not complete. One of '{"http://www.omg.org/spec/BPMN/20100524/MODEL":dataInput, "http://www.omg.org/spec/BPMN/20100524/MODEL":dataOutput, "http://www.omg.org/spec/BPMN/20100524/MODEL":inputSet}' is expected.

       

       

       

      Here is my bpmn xml :

       

      <?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:bpmn20="http://www.omg.org/bpmn20" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="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="_rGVx4KCJEeO6GrEkSffA5g" expressionLanguage="http://www.mvel.org/2.0" targetNamespace="http://www.omg.org/bpmn20" typeLanguage="http://www.java.com/javaTypes">

        <bpmn2:itemDefinition id="_0341584A-69C1-4666-B595-76EDFFCA597A_multiInstanceItemType"/>

        <bpmn2:itemDefinition id="_ItemListItem" structureRef="java.util.List"/>

        <bpmn2:itemDefinition id="_String" structureRef="String"/>

        <bpmn2:process id="com.symantec.netbackup.multi_instance_process" processType="Private" drools:version="1.0" drools:packageName="org.jbpm" drools:adHoc="false" name="multi_instance_process" isExecutable="true">

          <bpmn2:property id="InputItemList" itemSubjectRef="_ItemListItem"/>

          <bpmn2:startEvent id="processStartEvent" drools:bgcolor="#9acd32" drools:selectable="true" name="">

            <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>

          </bpmn2:startEvent>

          <bpmn2:endEvent id="_64847139-EFAF-4870-BE35-327480D22C3A" drools:bgcolor="#ff6347" drools:selectable="true" name="">

            <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>

            <bpmn2:terminateEventDefinition id="_rGVx4aCJEeO6GrEkSffA5g"/>

          </bpmn2:endEvent>

          <bpmn2:scriptTask id="ScriptTask_1" name="Script Task 1" scriptFormat="http://www.java.com/java">

            <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>

            <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>

            <bpmn2:script>System.out.println(&quot;staring..&quot;);</bpmn2:script>

          </bpmn2:scriptTask>

          <bpmn2:sequenceFlow id="SequenceFlow_1" drools:priority="1" sourceRef="processStartEvent" targetRef="ScriptTask_1"/>

          <bpmn2:subProcess id="SubProcess_1" name="Sub Process 1">

            <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming>

            <bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>

           <bpmn2:ioSpecification id="InputOutputSpecification_1">

              <bpmn2:dataInput id="DataInput_1" itemSubjectRef="_ItemListItem" name="ItemList"/>

            </bpmn2:ioSpecification>

            <bpmn2:dataInputAssociation id="DataInputAssociation_1">

              <bpmn2:sourceRef>InputItemList</bpmn2:sourceRef>

              <bpmn2:targetRef>DataInput_1</bpmn2:targetRef>

            </bpmn2:dataInputAssociation>

            <bpmn2:multiInstanceLoopCharacteristics id="MultiInstanceLoopCharacteristics_1">

              <bpmn2:loopDataInputRef>DataInput_1</bpmn2:loopDataInputRef>

              <bpmn2:inputDataItem xsi:type="bpmn2:tDataInput" id="DataInput_2" itemSubjectRef="_String" name="item"/>

            </bpmn2:multiInstanceLoopCharacteristics>

            <bpmn2:endEvent id="EndEvent_1" name="">

              <bpmn2:incoming>SequenceFlow_10</bpmn2:incoming>

            </bpmn2:endEvent>

            <bpmn2:scriptTask id="ScriptTask_4" name="Script Task 4" scriptFormat="http://www.java.com/java">

              <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>

              <bpmn2:outgoing>SequenceFlow_10</bpmn2:outgoing>

              <bpmn2:script>System.out.println(&quot;here&quot;);</bpmn2:script>

            </bpmn2:scriptTask>

            <bpmn2:sequenceFlow id="SequenceFlow_10" drools:priority="1" sourceRef="ScriptTask_4" targetRef="EndEvent_1"/>

            <bpmn2:startEvent id="StartEvent_1" name="">

              <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>

            </bpmn2:startEvent>

            <bpmn2:sequenceFlow id="SequenceFlow_9" drools:priority="1" sourceRef="StartEvent_1" targetRef="ScriptTask_4"/>

          </bpmn2:subProcess>

          <bpmn2:sequenceFlow id="SequenceFlow_7" drools:priority="1" sourceRef="ScriptTask_1" targetRef="SubProcess_1"/>

          <bpmn2:scriptTask id="ScriptTask_2" name="Script Task 2" scriptFormat="http://www.java.com/java">

            <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>

            <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>

            <bpmn2:script>System.out.println(&quot;ending..&quot;);</bpmn2:script>

          </bpmn2:scriptTask>

          <bpmn2:sequenceFlow id="SequenceFlow_4" drools:priority="1" sourceRef="ScriptTask_2" targetRef="_64847139-EFAF-4870-BE35-327480D22C3A"/>

          <bpmn2:sequenceFlow id="SequenceFlow_8" drools:priority="1" sourceRef="SubProcess_1" targetRef="ScriptTask_2"/>

        </bpmn2:process>

        <bpmndi:BPMNDiagram id="_rGVx56CJEeO6GrEkSffA5g" name="multi_instance_process">

          <bpmndi:BPMNPlane id="_rGVx6KCJEeO6GrEkSffA5g" bpmnElement="com.symantec.netbackup.multi_instance_process">

            <bpmndi:BPMNShape id="BPMNShape_SubProcess_1" bpmnElement="SubProcess_1" isExpanded="true">

              <dc:Bounds height="300.0" width="300.0" x="260.0" y="0.0"/>

            </bpmndi:BPMNShape>

            <bpmndi:BPMNShape id="_rGVx6aCJEeO6GrEkSffA5g" bpmnElement="processStartEvent">

              <dc:Bounds height="30.0" width="30.0" x="60.0" y="207.0"/>

            </bpmndi:BPMNShape>

            <bpmndi:BPMNShape id="_rGVx6qCJEeO6GrEkSffA5g" bpmnElement="_64847139-EFAF-4870-BE35-327480D22C3A">

              <dc:Bounds height="28.0" width="28.0" x="855.0" y="208.0"/>

            </bpmndi:BPMNShape>

            <bpmndi:BPMNShape id="BPMNShape_ScriptTask_1" bpmnElement="ScriptTask_1">

              <dc:Bounds height="50.0" width="110.0" x="131.0" y="300.0"/>

            </bpmndi:BPMNShape>

            <bpmndi:BPMNShape id="BPMNShape_ScriptTask_2" bpmnElement="ScriptTask_2">

              <dc:Bounds height="50.0" width="110.0" x="610.0" y="306.0"/>

            </bpmndi:BPMNShape>

            <bpmndi:BPMNShape id="BPMNShape_StartEvent_1" bpmnElement="StartEvent_1">

              <dc:Bounds height="36.0" width="36.0" x="393.0" y="40.0"/>

            </bpmndi:BPMNShape>

            <bpmndi:BPMNShape id="BPMNShape_EndEvent_1" bpmnElement="EndEvent_1">

              <dc:Bounds height="36.0" width="36.0" x="393.0" y="230.0"/>

            </bpmndi:BPMNShape>

            <bpmndi:BPMNShape id="BPMNShape_ScriptTask_4" bpmnElement="ScriptTask_4">

              <dc:Bounds height="50.0" width="110.0" x="356.0" y="126.0"/>

            </bpmndi:BPMNShape>

            <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_rGVx6aCJEeO6GrEkSffA5g" targetElement="BPMNShape_ScriptTask_1">

              <di:waypoint xsi:type="dc:Point" x="75.0" y="237.0"/>

              <di:waypoint xsi:type="dc:Point" x="75.0" y="325.0"/>

              <di:waypoint xsi:type="dc:Point" x="131.0" y="325.0"/>

            </bpmndi:BPMNEdge>

            <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="BPMNShape_ScriptTask_2" targetElement="_rGVx6qCJEeO6GrEkSffA5g">

              <di:waypoint xsi:type="dc:Point" x="720.0" y="331.0"/>

              <di:waypoint xsi:type="dc:Point" x="869.0" y="331.0"/>

              <di:waypoint xsi:type="dc:Point" x="869.0" y="236.0"/>

            </bpmndi:BPMNEdge>

            <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="BPMNShape_ScriptTask_1" targetElement="BPMNShape_SubProcess_1">

              <di:waypoint xsi:type="dc:Point" x="186.0" y="300.0"/>

              <di:waypoint xsi:type="dc:Point" x="186.0" y="150.0"/>

              <di:waypoint xsi:type="dc:Point" x="260.0" y="150.0"/>

            </bpmndi:BPMNEdge>

            <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_8" sourceElement="BPMNShape_SubProcess_1" targetElement="BPMNShape_ScriptTask_2">

              <di:waypoint xsi:type="dc:Point" x="410.0" y="300.0"/>

              <di:waypoint xsi:type="dc:Point" x="410.0" y="331.0"/>

              <di:waypoint xsi:type="dc:Point" x="610.0" y="331.0"/>

            </bpmndi:BPMNEdge>

            <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="BPMNShape_StartEvent_1" targetElement="BPMNShape_ScriptTask_4">

              <di:waypoint xsi:type="dc:Point" x="411.0" y="76.0"/>

              <di:waypoint xsi:type="dc:Point" x="411.0" y="98.0"/>

              <di:waypoint xsi:type="dc:Point" x="411.0" y="98.0"/>

              <di:waypoint xsi:type="dc:Point" x="411.0" y="126.0"/>

            </bpmndi:BPMNEdge>

            <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_10" sourceElement="BPMNShape_ScriptTask_4" targetElement="BPMNShape_EndEvent_1">

              <di:waypoint xsi:type="dc:Point" x="411.0" y="176.0"/>

              <di:waypoint xsi:type="dc:Point" x="411.0" y="200.0"/>

              <di:waypoint xsi:type="dc:Point" x="411.0" y="200.0"/>

              <di:waypoint xsi:type="dc:Point" x="411.0" y="230.0"/>

            </bpmndi:BPMNEdge>

          </bpmndi:BPMNPlane>

        </bpmndi:BPMNDiagram>

      </bpmn2:definitions>