<br>      The &quot;lifecycle&quot; of drools assets, from source to executable ReteOO, can be represented by the following workflow:<br><br>Source Code -&gt; Descr Model -&gt; Knowledge Model -&gt; ReteOO (kbase)<br><br>     Explaining:<br>
<br>1. The source code (DRL, Decision Table, BRXML, etc) goes through the drools parser that generates the descriptor model. The descriptor model is a canonical text-based model of your assets (packages, rules, etc). You may think about it as an Abstract Syntax Tree, but without parser specific info.<br>
<br>2. The descriptor model goes through the knowledge builder and generates the knowledge model. The knowledge model is a 1-to-1 mapping from the descr model, but in binary (compiled) format. <br><br>3. The knowledge model goes through the reteoo builder to build the actual ReteOO network, that ultimately is the executable format. <br>
<br>     Steps 1 and 2 are hidden behind a higher level API on the KnowledgeBuilder, but you can easily execute the parser directly. Step 3 happens when you call KnowledgeBase.add().<br><br>     Some people like to tinker with the source rules by just generating, changing, or injecting data into the Descr Model, instead of doing it in the textual source code. As long as you are aware that those are internal APIs that might change between drools versions and you are willing to maintain any code you write based on that, it is an easy way of avoiding parsing the rules source code yourself or using templates to inject the data you want.<br>
<br>    []s<br>    Edson<br><br><br><br><div class="gmail_quote">2010/1/29 Pritham <span dir="ltr">&lt;<a href="mailto:infinity2heaven@gmail.com">infinity2heaven@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
<br>
Edson Tirelli-4 wrote:<br>
&gt;<br>
&gt;     You could do this by either post-processing the DRL rule at deployment<br>
&gt; time and injecting the attribute value,<br>
&gt;<br>
<br>
</div>I did exactly that to get mine working the way I want.<br>
<br>
However, I&#39;m curious what you mean by,<br>
<div class="im"><br>
y using drools parser to generate the descriptor model, populate the<br>
attribute in the descriptor model and then deploy<br>
<br>
</div>Could you pl expand on that?<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n3.nabble.com/setting-Agenda-group-programmatically-tp142726p144052.html" target="_blank">http://n3.nabble.com/setting-Agenda-group-programmatically-tp142726p144052.html</a><br>

</font><div><div></div><div class="h5">Sent from the Drools - User mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>