[
http://jira.jboss.com/jira/browse/JBRULES-1028?page=comments#action_12372479 ]
Michael Neale commented on JBRULES-1028:
----------------------------------------
Fer - perhaps a better way is to update the drools-ant project to be able to deal with all
the asset types (basically do what the BRMS ContentPackageAssembler does - but with files)
- this would be FAR SUPERIOUR and we can integrate it with the IDE later as well.
ping me with any Q's.
importing .brxml into the application
-------------------------------------
Key: JBRULES-1028
URL:
http://jira.jboss.com/jira/browse/JBRULES-1028
Project: JBoss Rules
Issue Type: Task
Security Level: Public(Everyone can see)
Components: Eclipse IDE
Affects Versions: 4.0.0.GA
Environment: windows Xp Proffessional, Java/Eclipse IDE
Reporter: sreeni sabapathy
Assigned To: Fernando Meyer
Fix For: 4.0.1
Original Estimate: 3 days
Remaining Estimate: 3 days
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)
"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira