[rules-users] Convert rules to XSLT and dumping Rete Tree to XML

Andargor andargor at yahoo.com
Thu Jun 10 14:05:23 EDT 2010


Hello, first time on this list, be gentle :)

I need to convert DRL/DSLR rules to XSLT. There are many reasons why this is
necessary, but I would rather not get into that.

The rules themselves are very simple presence/absence of "tags" and simple
numeric comparisons (all easily converted to XSLT), and the rule base is
acyclic. The RHS does not contain anything other than insertLogicals.

I can already perform a topological sort of the rules and output XSLT.
However, it gets messy because of the differing approach from Drools and I
was wondering if I could somehow dump to XML the "compiled" Rete network
from the KnowledgeBase (or WorkingMemory, or KnowledgeBuilder, I'm not
sure). That way i think I can make the XSLT simpler and cleaner by using a
more hierarchical approach to the statements.

There used to be Dumper and ReteDumper classes to do this in the past, but
looking at the source they seem to have disappeared.

Can someone give me a few pointers on dumping the Rete Tree to XML? 
-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Convert-rules-to-XSLT-and-dumping-Rete-Tree-to-XML-tp886380p886380.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list