10 Replies Latest reply on Dec 3, 2014 11:46 PM by swathi s

    ERROR builder.impl.KnowledgeBuilderImpl.newKnowledgeBase  - ProcessLoadError: unable to parse xml : Exception class java.lang.NullPointerException : null

    swathi s Newbie

      HI , I am new to jbpm, some one plz help me for the bwlow error .

       

       

       

      java.lang.NullPointerException

       

      at org.jbpm.ruleflow.core.validation.RuleFlowProcessValidator.validateNodes(

       

      RuleFlowProcessValidator.java:193

      )

       

      at org.jbpm.ruleflow.core.validation.RuleFlowProcessValidator.validateProcess(

       

      RuleFlowProcessValidator.java:117

      )

       

       

      java.lang.IllegalArgumentException

       

       

       

       

      : Could not parse knowledge.

       

      at org.drools.builder.impl.KnowledgeBuilderImpl.newKnowledgeBase(

       

      KnowledgeBuilderImpl.java:79

      )

       

       

       

      Please help me .. thanks in advance..

        • 1. Re: ERROR builder.impl.KnowledgeBuilderImpl.newKnowledgeBase  - ProcessLoadError: unable to parse xml : Exception class java.lang.NullPointerException : null
          Maciej Swiderski Master

          most likely there is a gateway but there is no condition set on its outgoing sequence flows and thus NPE. Anyway I'd recommend to upgrade to latest version of jbpm 6

           

          HTH

          • 2. Re: ERROR builder.impl.KnowledgeBuilderImpl.newKnowledgeBase  - ProcessLoadError: unable to parse xml : Exception class java.lang.NullPointerException : null
            swathi s Newbie

            Thanks  a lot maciej!!!    Its working!!

            As I have mentiond condition for one sequeceflow, i forgot to mention it for another sequenceflow.

            But i have one doubt.. if i mention one condition for one sequenceflow, by default another sequenceflow should be true or false based on first condition rite.?

            Please correct me if i am wrong.

            • 3. Re: ERROR builder.impl.KnowledgeBuilderImpl.newKnowledgeBase  - ProcessLoadError: unable to parse xml : Exception class java.lang.NullPointerException : null
              Maciej Swiderski Master

              not really, gateways can have as many outgoing sequence flows as you like so you must specify condition on each of them.

               

              HTH

              • 4. Re: ERROR builder.impl.KnowledgeBuilderImpl.newKnowledgeBase  - ProcessLoadError: unable to parse xml : Exception class java.lang.NullPointerException : null
                swathi s Newbie

                Thanks Maciej !!

                I am using JBPM 5.4. Trying to understand how use userTask Entity. Could you plz explain about UserTask entity. I want to verify the Username and pwd credentials using UserTask.

                1) I am not abel to understand the I/O Parameters section

                2) What is the difference between Localvariable list under "EditUserTask" and Properties(DataItems-> Local variable list for process)

                I m getting the errror : Please find the attached filesameid.png

                 

                Thanks in Advance!!

                • 5. Re: ERROR builder.impl.KnowledgeBuilderImpl.newKnowledgeBase  - ProcessLoadError: unable to parse xml : Exception class java.lang.NullPointerException : null
                  Soumya Bose Newbie

                  Hi Swathi,

                   

                  It seems like you have two bpmn elements having same id in xml file. To resolve the issue you need to select the check box and click ok. It will generate an unique id for the duplicate element.

                   

                  jbpm 'Human Task' will be triggered by an actor / group associated with that Human Task node. If you assign an actor to the Human Task then the task will be automatically claimed to that user. User have to start the task & complete with the Map of output variable's key value pair. If you assign a human task to a group, then all the potential users within that group can see that human task. If one of them claim that task, then he will be able to start & complete the task.

                   

                  Input variables of a Human task are generally populated from Process variables at the time when you start the task, the practical usecase of that is, to fill your UI form field values as pre-populated.

                  Output variables of a Human Task needs to be supplied as a result map when you are completing the Task and they will be copied to process variables to reuse those values in other Human Tasks.

                   

                  Hope that will help you.

                   

                  Regards,

                   

                  ./sb

                  • 6. Re: ERROR builder.impl.KnowledgeBuilderImpl.newKnowledgeBase  - ProcessLoadError: unable to parse xml : Exception class java.lang.NullPointerException : null
                    swathi s Newbie

                    Thanks Soumya!!

                     

                    I have checked that particular checkbox and tried. but still I can see some errors in XML file like "Data input is missing/Incomplete data type"

                    I am trying to run the application in console(Using testcase).

                    As I am very new to this could you please suggest me some Usertask example sites which will help me to understand it in a better way.

                    • 7. Re: ERROR builder.impl.KnowledgeBuilderImpl.newKnowledgeBase  - ProcessLoadError: unable to parse xml : Exception class java.lang.NullPointerException : null
                      Soumya Bose Newbie

                      Hi Swathi,

                       

                      Can you please attach your bpmn file? I can see and advise then. You can get the sample bpmn files for Human Tasks in jbpm site itself.

                       

                       

                      Regards,

                       

                      ./sb

                      • 8. Re: ERROR builder.impl.KnowledgeBuilderImpl.newKnowledgeBase  - ProcessLoadError: unable to parse xml : Exception class java.lang.NullPointerException : null
                        swathi s Newbie

                        Hi soumya ,

                        Please find the Xml file details below. I have copied whole bmpn(XML) file.

                         

                        <?xml version="1.0" encoding="UTF-8"?>

                        <!-- origin at X=0.0 Y=0.0 -->

                        <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:java="http://www.java.com/javaTypes" 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" exporter="org.eclipse.bpmn2.modeler.core" exporterVersion="1.1.0.201409091530" expressionLanguage="http://www.mvel.org/2.0" targetNamespace="http://www.jboss.org/drools" typeLanguage="http://www.java.com/javaTypes">

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

                          <bpmn2:itemDefinition id="ItemDefinition_2" structureRef="Integer"/>

                          <bpmn2:itemDefinition id="ItemDefinition_3" structureRef="Boolean"/>

                          <bpmn2:itemDefinition id="ItemDefinition_61" structureRef="Object"/>

                          <bpmn2:itemDefinition id="ItemDefinition_60" structureRef="Float"/>

                          <bpmn2:process id="PriceIPMU" tns:packageName="defaultPackage" name="PriceIPMU" isExecutable="true" processType="Private">

                            <bpmn2:property id="iPMUAccess" itemSubjectRef="ItemDefinition_1"/>

                            <bpmn2:property id="request" itemSubjectRef="ItemDefinition_1"/>

                            <bpmn2:property id="userName" itemSubjectRef="ItemDefinition_1"/>

                            <bpmn2:property id="pwd" itemSubjectRef="ItemDefinition_1"/>

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

                              <bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>

                            </bpmn2:startEvent>

                            <bpmn2:exclusiveGateway id="ExclusiveGateway_1" name="Access To IPMU" gatewayDirection="Diverging">

                              <bpmn2:incoming>SequenceFlow_22</bpmn2:incoming>

                              <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>

                              <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>

                            </bpmn2:exclusiveGateway>

                            <bpmn2:scriptTask id="ScriptTask_1" name="PartNo For Approval" scriptFormat="http://www.java.com/java">

                              <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>

                              <bpmn2:incoming>SequenceFlow_23</bpmn2:incoming>

                              <bpmn2:outgoing>SequenceFlow_11</bpmn2:outgoing>

                              <bpmn2:script>System.out.println(&quot;Sucess:&quot;+iPMUAccess);</bpmn2:script>

                            </bpmn2:scriptTask>

                            <bpmn2:scriptTask id="ScriptTask_3" name="Display Error Msg" scriptFormat="http://www.java.com/java">

                              <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>

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

                              <bpmn2:script>System.out.println(&quot;Error:&quot;+iPMUAccess);</bpmn2:script>

                            </bpmn2:scriptTask>

                            <bpmn2:sequenceFlow id="SequenceFlow_3" tns:priority="1" name="IPMUAccess" sourceRef="ExclusiveGateway_1" targetRef="ScriptTask_1">

                              <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" id="FormalExpression_152" evaluatesToTypeRef="ItemDefinition_1" language="http://www.java.com/java">return iPMUAccess.equals(&quot;HasIPMUAccess&quot;);</bpmn2:conditionExpression>

                            </bpmn2:sequenceFlow>

                            <bpmn2:sequenceFlow id="SequenceFlow_5" tns:priority="1" name="No Access" sourceRef="ExclusiveGateway_1" targetRef="ScriptTask_3">

                              <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" id="FormalExpression_151" evaluatesToTypeRef="ItemDefinition_1" language="http://www.java.com/java">return iPMUAccess.equals(&quot;NoAccess&quot;);</bpmn2:conditionExpression>

                            </bpmn2:sequenceFlow>

                            <bpmn2:sequenceFlow id="SequenceFlow_6" tns:priority="1" sourceRef="StartEvent_1" targetRef="UserTask_8"/>

                            <bpmn2:endEvent id="EndEvent_2" name="End Event 2">

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

                            </bpmn2:endEvent>

                            <bpmn2:sequenceFlow id="SequenceFlow_8" tns:priority="1" sourceRef="ScriptTask_3" targetRef="EndEvent_2"/>

                            <bpmn2:exclusiveGateway id="ExclusiveGateway_2" name="Approve/Reject/Reset" gatewayDirection="Diverging">

                              <bpmn2:incoming>SequenceFlow_11</bpmn2:incoming>

                              <bpmn2:outgoing>SequenceFlow_12</bpmn2:outgoing>

                              <bpmn2:outgoing>SequenceFlow_13</bpmn2:outgoing>

                              <bpmn2:outgoing>SequenceFlow_14</bpmn2:outgoing>

                            </bpmn2:exclusiveGateway>

                            <bpmn2:sequenceFlow id="SequenceFlow_11" tns:priority="1" sourceRef="ScriptTask_1" targetRef="ExclusiveGateway_2"/>

                            <bpmn2:sequenceFlow id="SequenceFlow_12" tns:priority="1" name="Approve" sourceRef="ExclusiveGateway_2" targetRef="ScriptTask_4">

                              <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" id="FormalExpression_154" evaluatesToTypeRef="ItemDefinition_1" language="http://www.java.com/java">return request.equals(&quot;approve&quot;);</bpmn2:conditionExpression>

                            </bpmn2:sequenceFlow>

                            <bpmn2:sequenceFlow id="SequenceFlow_13" tns:priority="1" name="Reject" sourceRef="ExclusiveGateway_2" targetRef="ScriptTask_5">

                              <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" id="FormalExpression_155" evaluatesToTypeRef="ItemDefinition_1" language="http://www.java.com/java">return request.equals(&quot;reject&quot;);</bpmn2:conditionExpression>

                            </bpmn2:sequenceFlow>

                            <bpmn2:sequenceFlow id="SequenceFlow_14" tns:priority="1" name="Reset" sourceRef="ExclusiveGateway_2" targetRef="ScriptTask_6">

                              <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" id="FormalExpression_156" evaluatesToTypeRef="ItemDefinition_1" language="http://www.java.com/java">return request.equals(&quot;reset&quot;);</bpmn2:conditionExpression>

                            </bpmn2:sequenceFlow>

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

                              <bpmn2:incoming>SequenceFlow_12</bpmn2:incoming>

                              <bpmn2:outgoing>SequenceFlow_18</bpmn2:outgoing>

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

                            </bpmn2:scriptTask>

                            <bpmn2:scriptTask id="ScriptTask_5" name="Rejected" scriptFormat="http://www.java.com/java">

                              <bpmn2:incoming>SequenceFlow_13</bpmn2:incoming>

                              <bpmn2:outgoing>SequenceFlow_19</bpmn2:outgoing>

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

                            </bpmn2:scriptTask>

                            <bpmn2:scriptTask id="ScriptTask_6" name="Reset" scriptFormat="http://www.java.com/java">

                              <bpmn2:incoming>SequenceFlow_14</bpmn2:incoming>

                              <bpmn2:outgoing>SequenceFlow_23</bpmn2:outgoing>

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

                            </bpmn2:scriptTask>

                            <bpmn2:endEvent id="EndEvent_3" name="End Event 3">

                              <bpmn2:incoming>SequenceFlow_18</bpmn2:incoming>

                            </bpmn2:endEvent>

                            <bpmn2:endEvent id="EndEvent_4" name="End Event 4">

                              <bpmn2:incoming>SequenceFlow_19</bpmn2:incoming>

                            </bpmn2:endEvent>

                            <bpmn2:sequenceFlow id="SequenceFlow_18" tns:priority="1" sourceRef="ScriptTask_4" targetRef="EndEvent_3"/>

                            <bpmn2:sequenceFlow id="SequenceFlow_19" tns:priority="1" sourceRef="ScriptTask_5" targetRef="EndEvent_4"/>

                            <bpmn2:userTask id="UserTask_8" name="IPMU">

                              <bpmn2:extensionElements>

                                <tns:onEntry-script scriptFormat="http://www.java.com/java"/>

                              </bpmn2:extensionElements>

                              <bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>

                              <bpmn2:outgoing>SequenceFlow_22</bpmn2:outgoing>

                              <bpmn2:ioSpecification id="InputOutputSpecification_8">

                                <bpmn2:dataInput id="DataInput_97" name="TaskName"/>

                                <bpmn2:dataInput id="DataInput_99" name="Comment"/>

                                <bpmn2:dataInput id="DataInput_17" itemSubjectRef="ItemDefinition_1" name="input1"/>

                                <bpmn2:dataInput id="DataInput_29" itemSubjectRef="ItemDefinition_1" name="input2"/>

                                <bpmn2:dataInput id="DataInput_7" name="GroupId"/>

                                <bpmn2:dataInput id="DataInput_20" name="Priority"/>

                                <bpmn2:inputSet id="InputSet_15">

                                  <bpmn2:dataInputRefs>DataInput_97</bpmn2:dataInputRefs>

                                  <bpmn2:dataInputRefs>DataInput_99</bpmn2:dataInputRefs>

                                  <bpmn2:dataInputRefs>DataInput_17</bpmn2:dataInputRefs>

                                  <bpmn2:dataInputRefs>DataInput_29</bpmn2:dataInputRefs>

                                  <bpmn2:dataInputRefs>DataInput_7</bpmn2:dataInputRefs>

                                  <bpmn2:dataInputRefs>DataInput_20</bpmn2:dataInputRefs>

                                </bpmn2:inputSet>

                                <bpmn2:inputSet id="InputSet_16" name="Input Set 16"/>

                                <bpmn2:outputSet id="OutputSet_15"/>

                                <bpmn2:outputSet id="OutputSet_16" name="Output Set"/>

                              </bpmn2:ioSpecification>

                              <bpmn2:property id="uName" itemSubjectRef="ItemDefinition_1"/>

                              <bpmn2:property id="pwd_1" itemSubjectRef="ItemDefinition_1"/>

                              <bpmn2:property id="result" itemSubjectRef="ItemDefinition_1"/>

                              <bpmn2:dataInputAssociation id="DataInputAssociation_97">

                                <bpmn2:targetRef>DataInput_97</bpmn2:targetRef>

                                <bpmn2:assignment id="Assignment_154">

                                  <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_316">ipmu</bpmn2:from>

                                  <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="FormalExpression_315">DataInput_97</bpmn2:to>

                                </bpmn2:assignment>

                              </bpmn2:dataInputAssociation>

                              <bpmn2:dataInputAssociation id="DataInputAssociation_99">

                                <bpmn2:targetRef>DataInput_99</bpmn2:targetRef>

                                <bpmn2:assignment id="Assignment_156">

                                  <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_320">ipmu login details</bpmn2:from>

                                  <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="FormalExpression_319">DataInput_99</bpmn2:to>

                                </bpmn2:assignment>

                              </bpmn2:dataInputAssociation>

                              <bpmn2:dataInputAssociation id="DataInputAssociation_17">

                                <bpmn2:sourceRef>userName</bpmn2:sourceRef>

                                <bpmn2:targetRef>DataInput_17</bpmn2:targetRef>

                              </bpmn2:dataInputAssociation>

                              <bpmn2:dataInputAssociation id="DataInputAssociation_29">

                                <bpmn2:sourceRef>pwd_1</bpmn2:sourceRef>

                                <bpmn2:targetRef>DataInput_29</bpmn2:targetRef>

                              </bpmn2:dataInputAssociation>

                              <bpmn2:dataInputAssociation id="DataInputAssociation_7">

                                <bpmn2:targetRef>DataInput_7</bpmn2:targetRef>

                                <bpmn2:assignment id="Assignment_7">

                                  <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_14">pricing</bpmn2:from>

                                  <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="FormalExpression_13">DataInput_7</bpmn2:to>

                                </bpmn2:assignment>

                              </bpmn2:dataInputAssociation>

                              <bpmn2:dataInputAssociation id="DataInputAssociation_20">

                                <bpmn2:targetRef>DataInput_20</bpmn2:targetRef>

                                <bpmn2:assignment id="Assignment_19">

                                  <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_38">1</bpmn2:from>

                                  <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="FormalExpression_37">DataInput_20</bpmn2:to>

                                </bpmn2:assignment>

                              </bpmn2:dataInputAssociation>

                            </bpmn2:userTask>

                            <bpmn2:sequenceFlow id="SequenceFlow_22" tns:priority="1" sourceRef="UserTask_8" targetRef="ExclusiveGateway_1"/>

                            <bpmn2:sequenceFlow id="SequenceFlow_23" tns:priority="1" sourceRef="ScriptTask_6" targetRef="ScriptTask_1"/>

                          </bpmn2:process>

                          <bpmndi:BPMNDiagram id="BPMNDiagram_1">

                            <bpmndi:BPMNPlane id="BPMNPlane_Process_1" bpmnElement="PriceIPMU">

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

                                <dc:Bounds height="36.0" width="36.0" x="56.0" y="122.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_1">

                                  <dc:Bounds height="15.0" width="71.0" x="39.0" y="158.0"/>

                                </bpmndi:BPMNLabel>

                              </bpmndi:BPMNShape>

                              <bpmndi:BPMNShape id="BPMNShape_ExclusiveGateway_1" bpmnElement="ExclusiveGateway_1" isMarkerVisible="true">

                                <dc:Bounds height="50.0" width="50.0" x="200.0" y="229.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_2">

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

                                </bpmndi:BPMNLabel>

                              </bpmndi:BPMNShape>

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

                                <dc:Bounds height="50.0" width="110.0" x="325.0" y="229.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_3">

                                  <dc:Bounds height="15.0" width="109.0" x="325.0" y="246.0"/>

                                </bpmndi:BPMNLabel>

                              </bpmndi:BPMNShape>

                              <bpmndi:BPMNShape id="BPMNShape_ScriptTask_3" bpmnElement="ScriptTask_3">

                                <dc:Bounds height="50.0" width="110.0" x="325.0" y="339.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_4">

                                  <dc:Bounds height="15.0" width="97.0" x="331.0" y="356.0"/>

                                </bpmndi:BPMNLabel>

                              </bpmndi:BPMNShape>

                              <bpmndi:BPMNShape id="BPMNShape_EndEvent_2" bpmnElement="EndEvent_2">

                                <dc:Bounds height="36.0" width="36.0" x="470.0" y="388.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_5">

                                  <dc:Bounds height="15.0" width="65.0" x="456.0" y="424.0"/>

                                </bpmndi:BPMNLabel>

                              </bpmndi:BPMNShape>

                              <bpmndi:BPMNShape id="BPMNShape_ExclusiveGateway_2" bpmnElement="ExclusiveGateway_2" isMarkerVisible="true">

                                <dc:Bounds height="50.0" width="50.0" x="486.0" y="229.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_6">

                                  <dc:Bounds height="30.0" width="118.0" x="452.0" y="279.0"/>

                                </bpmndi:BPMNLabel>

                              </bpmndi:BPMNShape>

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

                                <dc:Bounds height="50.0" width="110.0" x="600.0" y="139.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_7">

                                  <dc:Bounds height="15.0" width="51.0" x="629.0" y="156.0"/>

                                </bpmndi:BPMNLabel>

                              </bpmndi:BPMNShape>

                              <bpmndi:BPMNShape id="BPMNShape_ScriptTask_5" bpmnElement="ScriptTask_5">

                                <dc:Bounds height="50.0" width="110.0" x="600.0" y="229.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_8">

                                  <dc:Bounds height="15.0" width="49.0" x="630.0" y="246.0"/>

                                </bpmndi:BPMNLabel>

                              </bpmndi:BPMNShape>

                              <bpmndi:BPMNShape id="BPMNShape_ScriptTask_6" bpmnElement="ScriptTask_6">

                                <dc:Bounds height="50.0" width="110.0" x="600.0" y="312.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_9">

                                  <dc:Bounds height="15.0" width="33.0" x="638.0" y="329.0"/>

                                </bpmndi:BPMNLabel>

                              </bpmndi:BPMNShape>

                              <bpmndi:BPMNShape id="BPMNShape_EndEvent_3" bpmnElement="EndEvent_3">

                                <dc:Bounds height="36.0" width="36.0" x="747.0" y="133.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_10">

                                  <dc:Bounds height="15.0" width="65.0" x="733.0" y="169.0"/>

                                </bpmndi:BPMNLabel>

                              </bpmndi:BPMNShape>

                              <bpmndi:BPMNShape id="BPMNShape_EndEvent_4" bpmnElement="EndEvent_4">

                                <dc:Bounds height="36.0" width="36.0" x="742.0" y="232.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_11">

                                  <dc:Bounds height="15.0" width="65.0" x="728.0" y="268.0"/>

                                </bpmndi:BPMNLabel>

                              </bpmndi:BPMNShape>

                              <bpmndi:BPMNShape id="BPMNShape_UserTask_6" bpmnElement="UserTask_8">

                                <dc:Bounds height="50.0" width="110.0" x="135.0" y="115.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_12">

                                  <dc:Bounds height="15.0" width="29.0" x="175.0" y="132.0"/>

                                </bpmndi:BPMNLabel>

                              </bpmndi:BPMNShape>

                              <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="BPMNShape_ExclusiveGateway_1" targetElement="BPMNShape_ScriptTask_1">

                                <di:waypoint xsi:type="dc:Point" x="250.0" y="254.0"/>

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

                                <bpmndi:BPMNLabel id="BPMNLabel_13">

                                  <dc:Bounds height="15.0" width="69.0" x="254.0" y="255.0"/>

                                </bpmndi:BPMNLabel>

                              </bpmndi:BPMNEdge>

                              <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="BPMNShape_ExclusiveGateway_1" targetElement="BPMNShape_ScriptTask_3">

                                <di:waypoint xsi:type="dc:Point" x="225.0" y="279.0"/>

                                <di:waypoint xsi:type="dc:Point" x="225.0" y="364.0"/>

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

                                <bpmndi:BPMNLabel id="BPMNLabel_14">

                                  <dc:Bounds height="15.0" width="59.0" x="196.0" y="363.0"/>

                                </bpmndi:BPMNLabel>

                              </bpmndi:BPMNEdge>

                              <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="BPMNShape_StartEvent_1" targetElement="BPMNShape_UserTask_6">

                                <di:waypoint xsi:type="dc:Point" x="92.0" y="140.0"/>

                                <di:waypoint xsi:type="dc:Point" x="135.0" y="140.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_15"/>

                              </bpmndi:BPMNEdge>

                              <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_8" sourceElement="BPMNShape_ScriptTask_3" targetElement="BPMNShape_EndEvent_2">

                                <di:waypoint xsi:type="dc:Point" x="435.0" y="364.0"/>

                                <di:waypoint xsi:type="dc:Point" x="488.0" y="364.0"/>

                                <di:waypoint xsi:type="dc:Point" x="488.0" y="388.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_16"/>

                              </bpmndi:BPMNEdge>

                              <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="SequenceFlow_11" sourceElement="BPMNShape_ScriptTask_1" targetElement="BPMNShape_ExclusiveGateway_2">

                                <di:waypoint xsi:type="dc:Point" x="435.0" y="254.0"/>

                                <di:waypoint xsi:type="dc:Point" x="486.0" y="254.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_17"/>

                              </bpmndi:BPMNEdge>

                              <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_12" bpmnElement="SequenceFlow_12" sourceElement="BPMNShape_ExclusiveGateway_2" targetElement="BPMNShape_ScriptTask_4">

                                <di:waypoint xsi:type="dc:Point" x="511.0" y="229.0"/>

                                <di:waypoint xsi:type="dc:Point" x="511.0" y="164.0"/>

                                <di:waypoint xsi:type="dc:Point" x="600.0" y="164.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_18">

                                  <dc:Bounds height="15.0" width="44.0" x="502.0" y="165.0"/>

                                </bpmndi:BPMNLabel>

                              </bpmndi:BPMNEdge>

                              <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_13" bpmnElement="SequenceFlow_13" sourceElement="BPMNShape_ExclusiveGateway_2" targetElement="BPMNShape_ScriptTask_5">

                                <di:waypoint xsi:type="dc:Point" x="536.0" y="254.0"/>

                                <di:waypoint xsi:type="dc:Point" x="600.0" y="254.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_19">

                                  <dc:Bounds height="15.0" width="35.0" x="551.0" y="255.0"/>

                                </bpmndi:BPMNLabel>

                              </bpmndi:BPMNEdge>

                              <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_14" bpmnElement="SequenceFlow_14" sourceElement="BPMNShape_ExclusiveGateway_2" targetElement="BPMNShape_ScriptTask_6">

                                <di:waypoint xsi:type="dc:Point" x="511.0" y="279.0"/>

                                <di:waypoint xsi:type="dc:Point" x="511.0" y="328.0"/>

                                <di:waypoint xsi:type="dc:Point" x="600.0" y="328.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_20">

                                  <dc:Bounds height="15.0" width="33.0" x="511.0" y="338.0"/>

                                </bpmndi:BPMNLabel>

                              </bpmndi:BPMNEdge>

                              <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_18" bpmnElement="SequenceFlow_18" sourceElement="BPMNShape_ScriptTask_4" targetElement="BPMNShape_EndEvent_3">

                                <di:waypoint xsi:type="dc:Point" x="710.0" y="164.0"/>

                                <di:waypoint xsi:type="dc:Point" x="726.0" y="164.0"/>

                                <di:waypoint xsi:type="dc:Point" x="726.0" y="151.0"/>

                                <di:waypoint xsi:type="dc:Point" x="747.0" y="151.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_21"/>

                              </bpmndi:BPMNEdge>

                              <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_19" bpmnElement="SequenceFlow_19" sourceElement="BPMNShape_ScriptTask_5" targetElement="BPMNShape_EndEvent_4">

                                <di:waypoint xsi:type="dc:Point" x="710.0" y="254.0"/>

                                <di:waypoint xsi:type="dc:Point" x="724.0" y="254.0"/>

                                <di:waypoint xsi:type="dc:Point" x="724.0" y="250.0"/>

                                <di:waypoint xsi:type="dc:Point" x="742.0" y="250.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_22"/>

                              </bpmndi:BPMNEdge>

                              <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_22" bpmnElement="SequenceFlow_22" sourceElement="BPMNShape_UserTask_6" targetElement="BPMNShape_ExclusiveGateway_1">

                                <di:waypoint xsi:type="dc:Point" x="190.0" y="165.0"/>

                                <di:waypoint xsi:type="dc:Point" x="190.0" y="193.0"/>

                                <di:waypoint xsi:type="dc:Point" x="225.0" y="193.0"/>

                                <di:waypoint xsi:type="dc:Point" x="225.0" y="229.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_23"/>

                              </bpmndi:BPMNEdge>

                              <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_23" bpmnElement="SequenceFlow_23" sourceElement="BPMNShape_ScriptTask_6" targetElement="BPMNShape_ScriptTask_1">

                                <di:waypoint xsi:type="dc:Point" x="600.0" y="344.0"/>

                                <di:waypoint xsi:type="dc:Point" x="445.0" y="344.0"/>

                                <di:waypoint xsi:type="dc:Point" x="445.0" y="329.0"/>

                                <di:waypoint xsi:type="dc:Point" x="380.0" y="329.0"/>

                                <di:waypoint xsi:type="dc:Point" x="380.0" y="279.0"/>

                                <bpmndi:BPMNLabel id="BPMNLabel_24"/>

                              </bpmndi:BPMNEdge>

                            </bpmndi:BPMNPlane>

                          </bpmndi:BPMNDiagram>

                        </bpmn2:definitions>

                        Thanks soumya

                        • 9. Re: Re: ERROR builder.impl.KnowledgeBuilderImpl.newKnowledgeBase  - ProcessLoadError: unable to parse xml : Exception class java.lang.NullPointerException : null
                          Soumya Bose Newbie

                          Hi Swathi,

                           

                          There was few issues in your bpmn file. I have fixed them and attaching you the latest one. Please once go through it. Just diff with your version and understand the change I have done.

                           

                           

                          Note:

                          - For Data types do not use Drools data types instead use java data types in your process. Example, For String data type do not use 'StringDataType' instead use 'java.lang.String'.

                          - A script task can not have a multiple incoming / outgoing connection.

                           

                          Regards,

                           

                          ./sb