1 Reply Latest reply on Oct 12, 2012 9:56 AM by saig0

    Could not parse Knowledge

    tmmaluleke Newbie

      Hello,

       

      Can you please help me with this error I have attached my BPMN  is about the XOR gateway.

       

      Process Compilation error : org.drools.lang.descr.ProcessDescr@d4c8b0

          defaultPackage/Process_defaultPackage_Student_Validating_Process_34d16590994f44cd867927657f8d2e16.java (20:872) : student cannot be resolved

       

      java.lang.IllegalArgumentException: Could not parse knowledge.

          at org.drools.builder.impl.KnowledgeBuilderImpl.newKnowledgeBase(KnowledgeBuilderImpl.java:73)

          at validate.ValidatingStudent.readKnowledgeBase(ValidatingStudent.java:47)

          at validate.ValidatingStudent.main(ValidatingStudent.java:24)

        • 1. Re: Could not parse Knowledge
          saig0 Newbie

          Hi tmmaluleke!

           

          You got a typing error in your exclusive gateway. You wrote "student" instead of "studentId" ;-)

           

          <sequenceFlow id="_5-_6" sourceRef="_5" targetRef="_6" name="Accept" tns:priority="1" >
                <conditionExpression xsi:type="tFormalExpression" language="http://www.java.com/java" >return student =true;</conditionExpression> 
              </sequenceFlow>
              <sequenceFlow id="_5-_7" sourceRef="_5" targetRef="_7" name="Reject" tns:priority="1" >
                <conditionExpression xsi:type="tFormalExpression" language="http://www.java.com/java" >return studentId=false;</conditionExpression>
              </sequenceFlow>