Hi,<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><i>1) When rules are entered through the UI are they immediately added to the rule base?</i></div><div><font class="Apple-style-span" color="#000099">I assume by UI you mean Guvnor. In Guvnor, each rule is defined inside a package. When you create a new rule you must define the package where it belongs. Guvnor doesn&#39;t create any kbase, you can see a package (in Guvnor) like a DRL file split in different parts: the imports, the globals, each rule, etc. So Guvnor is only in charge of maintain different versions of that DRLs.</font></div>

<div><br></div><div><i>2) Does the edit UI require code to define new entities and associated metadata? </i></div><div><font class="Apple-style-span" color="#000099">If you need to use Domain specific entities in your rules (and I&#39;m sure you will), you have 2 different ways to define them:</font></div>

<div><font class="Apple-style-span" color="#000099">1.- Declare the entities in Guvnor. This will use the &quot;declare&quot; keyword to define a New Data Type. </font></div><div><font class="Apple-style-span" color="#000099">2.- Upload to guvnor&#39;s package a .jar file containing your model.</font></div>

<div><br></div><div><i>3) What would our interface look like if we called it as a service for only rule evaluation? </i></div><div><font class="Apple-style-span" color="#000099">I didn&#39;t get this question. If you want to use your rules, you will need to create an application that creates a knowledge base from one or more resources (the packages hosted in Guvnor) and then creates a knowledge session from it. You can then expose that session as a service.</font></div>

<div><font class="Apple-style-span" color="#000099">Or you can use drools server which does exactly what I told you.</font></div><div><br></div><div><i>4) What is the rule scoping mechanism. That is, how do I say &quot;evaluate this set of information against </i></div>

<div><i>ruleset Q&quot;? </i></div><div><font class="Apple-style-span" color="#000099">One way to have different &quot;rulesets&quot; is to define different knowledge bases containing different rules. If you are using Guvnor to store your rules, you could have for example 3 packages A, B and C. Then, when you create a knowledge base, you could select only the packages with the rules that you need.</font></div>

<div><font class="Apple-style-span" color="#000099">The evaluation takes place when you insert facts (objects) into a knowledge session.</font></div><div><br></div><div><i>5) I&#39;m concerned about the &quot;then&quot; clause. It looks like it is always code. If our &quot;then&quot; always consists of </i></div>

<div><i>assignments to some set of variables or parameters, what does the person writing rules see?</i></div><div><font class="Apple-style-span" color="#000099">mmmh... He will see the assignments? :P</font></div><div><br>

</div><div><br></div><div>Best Regards,</div><div><br></div>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">2011/3/9 Carlos Santiago Moreno <span dir="ltr">&lt;<a href="mailto:ingcsmoreno@gmail.com">ingcsmoreno@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div>Hi There! I have been reading some more about Drools, Guvnor, and JBPM5, and I have a few new doubts, that I couldn&#39;t get solved from the documentation I read. And here they are:</div><div><br></div><div>1) When rules are entered through the UI are they immediately added to the rule base?</div>


<div><br></div><div>2) Does the edit UI require code to define new entities and associated metadata? </div><div><br></div><div>3) What would our interface look like if we called it as a service for only rule evaluation? </div>


<div><br></div><div>4) What is the rule scoping mechanism. That is, how do I say &quot;evaluate this set of information against </div><div>ruleset Q&quot;? </div><div><br></div><div>5) I&#39;m concerned about the &quot;then&quot; clause. It looks like it is always code. If our &quot;then&quot; always consists of </div>


<div>assignments to some set of variables or parameters, what does the person writing rules see?</div><div><br></div><div>6) Can I define a new workflow and connect it into some dispatcher for invokation without writing any code and without stopping or upgrading the app?</div>


<div><br></div><div>Thanks for your help.</div><div><br></div><div>Carlos S. Moreno</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></div>