Hi,<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><font class="Apple-style-span" color="#000066">1) You write a java program, rules / actions are hard coded inline or saved<br>in text files / excel sheets / XML files etc. After importing the necessary<br>

drools classes you call the drools interface routines, with the following<br>functionalities:<br>load rules, providing working memory, adding facts und finally starting the rule<br>engine (e.g. firing rules).</font></div>

<div><br></div><div>Just some corrections here. The steps would be: load rules, get a working memory (kbase), create a session from the working memory, insert facts to it (this will start the pattern matching algorithm), fire the action part of the rules that matches the inserted Facts.</div>

<div><br><br><font class="Apple-style-span" color="#000066">2) You use the capabilities of the Drools GUI tools (such as Guvnor), which<br>allows entering rules, objects and actions via GUI tools.<br>Here, I don&#39;t get the point whether a part of the java code is generated<br>

automatically, or whether you have to write your java classes by yourself, as<br>presented in possibility 1 (above), but without coding the rules by yourself in<br>the source code / external input files.</font></div><div>

<font class="Apple-style-span" color="#000066"><br></font></div><div>Guvnor is just used as a centralized place to create (if you want to), maintain and distribute your rules. You have different editor for different representations, like DRL, BRL (using a Guided Editor), Decision Table, DSL, etc. Guvnor then exposes these assets (their source code or binary representation) through different URLs. So, your application should read the rules (in the first step of the previous section) from Guvnor using HTTP (or even webdav) to create the working memory.</div>

<div><br></div><div>Hope this helps to clarify a little bit your thoughts.</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>Best Regards,</div><div>  </div><div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>

<br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>


<br><br><div class="gmail_quote">On Thu, Feb 3, 2011 at 2:26 PM, Martin Richardsen <span dir="ltr">&lt;<a href="mailto:jaichwill@gmail.com">jaichwill@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
I am a complete novice concerning Drools and have some basic questions,<br>
which arised after studying the drools documentation and some examples as well.<br>
<br>
As far as I got it right, you have two possibilities to work with drools<br>
<br>
1) You write a java program, rules / actions are hard coded inline or saved<br>
in text files / excel sheets / XML files etc. After importing the necessary<br>
drools classes you call the drools interface routines, with the following<br>
functionalities:<br>
load rules, providing working memory, adding facts und finally starting the rule<br>
engine (e.g. firing rules).<br>
<br>
2) You use the capabilities of the Drools GUI tools (such as Guvnor), which<br>
allows entering rules, objects and actions via GUI tools.<br>
Here, I don&#39;t get the point whether a part of the java code is generated<br>
automatically, or whether you have to write your java classes by yourself, as<br>
presented in possibility 1 (above), but without coding the rules by yourself in<br>
the source code / external input files.<br>
<br>
I would be very pleased, if anyone could explain me the essential difference<br>
between the two approaches and accordingly tell me what the advantage of using<br>
method 2) would be in contrast to method 1), particularly concerning the<br>
necessary java coding.<br>
<br>
<br>
---<br>
<br>
<br>
Well and there would be another question, if you write down your rules and the<br>
corresponding software, which accesses the rules, is it possible to add some<br>
rules later, without rewriting/recompiling your software?<br>
<br>
<br>
Thanks in advance!<br>
<br>
Cheers, Martin.<br>
<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>
</blockquote></div><br></div>