<div><br></div>   Tough question to answer as not everything in a DRL file becomes bytecode, and not all in the same place. For instance, rule consequences and other semantic code blocks, when using the java dialect, will become a class that is code generated and compiled in memory. You can see that code by setting the dump dir option in the KnowledgeBuilderConfiguration object (or -Ddrools.dump.dir=&lt;path&gt; on the command line). <div>
<br></div><div>   Constraints on the other hand will become a mix of JIT bytecode and/or MVEL expressions and/or object accessors, depending on several factors. Since they are shared among multiple rules, they don&#39;t belong to a single rule in particular, but become part of the Rete network, that is basically an in-memory data structure.</div>
<div><br></div><div>   Not exactly sure if this helps you...</div><div><br></div><div>   Edson<br><br><div class="gmail_quote">2012/1/26 Mainul Raju <span dir="ltr">&lt;<a href="mailto:mainul.raju@yahoo.com">mainul.raju@yahoo.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:arial,helvetica,sans-serif"><div><span> <br></span></div><div><span><br></span></div>
<div><span>Hello All:</span></div><div><span><br></span></div><div><span>I have been trying to get the byte code representation of rules (.drl files). I would appreciate it if anyone could kindly provide me any way to do that.</span></div>
<div><span> </span></div><div><span>I have created a rule based application with 100 rules in 5 different .drl files. My intention is to analyze the application with some byte code analyzer (i.e. soot). For the purpose of hat static analysis, I need the byte-code representation of rules which I can&#39;t get from drools.</span></div>
<div><span><br></span></div><div><span>Thanks in advance.</span></div><div><span>//</span></div><span class="HOEnZb"><font color="#888888"><div><span>Mainul<br></span></div></font></span></div></div><br>_______________________________________________<br>

rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>