Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-1028

importing .brxml into the application

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.GA
    • Fix Version/s: 4.0.1
    • Component/s: drools-eclipse
    • Labels:
      None
    • Environment:

      windows Xp Proffessional, Java/Eclipse IDE

    • Affects:
      Compatibility/Configuration
    • Estimated Difficulty:
      Low

      Description

      The new feature in Jboss rule 4.0, the " New guided drl editor".
      This feature which works similar to the drools-jbrms in the Eclipse plugin.
      I am able to create the necessatry rules, but as the edited rules exist in "rule.brxml" and in "rule.package".

      How to Import this ".brxml" and ".package" into the package builder in order to get the package into the Rulebase and get working?

      I tried using the XmlPackageReader.read(reader) and then tried to build through the PackageBuilder . In other case also used the adddrlfomxml().
      It failed in both the case stating it as the

      "<rule> has an invalid parent element [null]
      at org.drools.xml.XmlPackageReader.validate(XmlPackageReader.java:486)
      at org.drools.xml.XmlPackageReader.startElement(XmlPackageReader.java:394)
      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
      at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at javax.xml.parsers.SAXParser.parse(Unknown Source)
      at org.drools.xml.XmlPackageReader.read(XmlPackageReader.java:321)
      at org.drools.xml.XmlPackageReader.read(XmlPackageReader.java:247)
      at com.sample.DroolsTest.readRule(DroolsTest.java:60)
      at com.sample.DroolsTest.main(DroolsTest.java:23)
      "

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                fmeyer Fernando Meyer
                Reporter:
                seen_212 sreeni sabapathy
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 days
                  3d
                  Remaining:
                  Remaining Estimate - 3 days
                  3d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified