I may have missed this, too, but I'd like to have a map of package+rulename to .DRL/.DSLR-pathname+linenumber.<br><br>The DRL parser shouldn't have any trouble delivering this info, right Edson?<br><br>I have produced this information with a kludgy hack, and it's great for producing documentation answering question such as:<br>
<br>"Whera are all my rules?"<br>package appl.domain<br> "find disjoint pairs" at /appl/domain/elements.dslr:13<br> "find intersecting pairs" at /appl/domain/elements.dslr:31<br> "find an element with thirteen numbers" at /appl/domain/elements.dslr:61<br>
"find an element with twelve numbers" at /appl/domain/elements.dslr:47<br> "find subset pairs" at /appl/domain/elements.drl:21<br><br>"Where is some fact class used?"<br>class appl.domain.Element used in:<br>
"find an element with twelve numbers" in appl.domain at /appl/domain/elements.dslr:47<br> "find subset pairs" in appl.domain at /appl/domain/elements.drl:21<br> "find disjoint pairs" in appl.domain at /appl/domain/elements.dslr:13<br>
"find an element with thirteen numbers" in appl.domain at /appl/domain/elements.dslr:61<br> "find intersecting pairs" in appl.domain at /appl/domain/elements.dslr:31<br><br>"Where is the rule causing a RuntimeException?"<br>
Exception in thread "main" rss.drools.monitor.ActivationLoopError: looping over rules "find an element with twelve numbers" at /appl/domain/elements.dslr:47, "find an element with thirteen numbers" at /appl/domain/elements.dslr:61 (all in appl.domain)<br>
<br>The class should be Serializable, and separately retrievable from the KnowledgeBuilder.<br><br>Any chance?<br>-W<br>