<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span><br></span></div><div><span>Thanks a lot. At least we are on the same track :).&nbsp;</span></div><div><span><br></span></div><div><span>I already dumped it into a directory and It gives me all generated .java files. At this point, trying to figure out some ways around for static analysis on rules by using SOOT. No luck yet :( .&nbsp;</span></div><div><span><br></span></div><div><span>Thanks again for your informative response.</span></div><div>&nbsp;</div><div><font class="Apple-style-span" color="#a2a2a2">----------</font></div><div><font class="Apple-style-span" color="#a2a2a2">Mainul</font></div><div><br></div>  <div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr
 size="1">  <b><span style="font-weight:bold;">From:</span></b> Edson Tirelli &lt;ed.tirelli@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Rules Users List &lt;rules-users@lists.jboss.org&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, 27 January 2012, 17:35<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [rules-users] bytecode representation of rules<br> </font> </div> <br><div id="yiv1676789395"><div><br></div>&nbsp; &nbsp;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).&nbsp;<div>
<br></div><div>&nbsp; &nbsp;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'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>&nbsp; &nbsp;Not exactly sure if this helps you...</div><div><br></div><div>&nbsp; &nbsp;Edson<br><br><div class="yiv1676789395gmail_quote">2012/1/26 Mainul Raju <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:mainul.raju@yahoo.com" target="_blank" href="mailto:mainul.raju@yahoo.com">mainul.raju@yahoo.com</a>&gt;</span><br>
<blockquote class="yiv1676789395gmail_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>&nbsp;<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>&nbsp;</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't get from drools.</span></div>
<div><span><br></span></div><div><span>Thanks in advance.</span></div><div><span>//</span></div><span class="yiv1676789395HOEnZb"><font color="#888888"><div><span>Mainul<br></span></div></font></span></div></div><br>_______________________________________________<br>

rules-users mailing list<br>
<a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>&nbsp; Edson Tirelli<br>&nbsp; JBoss Drools Core Development<br>&nbsp; JBoss by Red Hat @ <a rel="nofollow" target="_blank" href="http://www.jboss.com">www.jboss.com</a><br>
</div>
</div><br>_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" 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><br> </div> </div>  </div></body></html>