<div dir="ltr"><span id="result_box" class="" lang="en"><span class="hps">I have</span> <span class="hps">not</span> <span class="hps">understood your answer</span>, <span class="hps">what I</span> <span class="hps">meant was</span> ,for example i had <span class="hps">a</span> <span class="hps">program</span> <span class="hps">function that</span> <span class="hps">returns</span> <span class="hps">me</span> <span class="hps">the</span> <span class="hps">max</span> <span class="hps">and I want to</span> <span class="hps">make it available</span> <span class="hps">to</span> <span class="hps">one who</span> <span class="hps">will create</span> <span class="hps">the</span> business <span class="hps">rule</span> <span class="hps">.</span></span><span id="result_box" class="" lang="en"><span class="hps">It goes</span> <span class="hps">like that when</span> <span class="hps">access</span> <span class="hps">to the creation of</span> <span class="hps">a</span> <span class="hps">new rule template</span> <span class="hps">and not technical</span> <span class="hps atn">(</span><span class="">he knows</span> <span class="hps">not</span> <span class="hps">to programming)</span> <span class="hps">it will use</span> <span class="hps">this function</span> <span class="hps">already</span> <span class="hps">defined</span> <span class="hps atn">in the &quot;</span><span class="">create</span> <span class="hps">new Function</span><span class="">&quot;.</span></span><div>
<br></div><div>please do you know how to make this call?</div><div><br></div><div>thanks in advance<br><br><div class="gmail_quote">2012/2/13 Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It is not so easy to create rules programmatically (if that&#39;s what you mean).<div><br></div><div>You could use the experimental (unstable) &quot;fluent&quot; API (see <a style="color:rgb(74,93,117);font-family:&#39;Lucida Grande&#39;,Geneva,Verdana,Arial,sans-serif;font-size:1.1em;line-height:16px;text-align:justify">2.2.2.6. Rule API in the &quot;Drools Introduction and General User Guide&quot;), but this is a rather inconvenient way of accumulating strings to create a package. I&#39;d rather create a String and feed the DRL compiler with it, but YMMV.</a></div>

<div><a style="color:rgb(74,93,117);font-family:&#39;Lucida Grande&#39;,Geneva,Verdana,Arial,sans-serif;font-size:1.1em;line-height:16px;text-align:justify"><br></a></div><div><a style="color:rgb(74,93,117);font-family:&#39;Lucida Grande&#39;,Geneva,Verdana,Arial,sans-serif;font-size:1.1em;line-height:16px;text-align:justify">-W</a></div>

<div><br></div><div><br></div><div><br><div class="gmail_quote">2012/2/13 freelance developpement <span dir="ltr">&lt;<a href="mailto:developpement.freelance@gmail.com" target="_blank">developpement.freelance@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><div class="h5"><div dir="ltr"><div><span lang="en"><span>Hi every one,</span></span></div><span lang="en"><span><div>
<span lang="en"><span><br>
</span></span></div>
I defined a</span> <span>function</span> <span>in</span> <span>Guvnor</span> <span>and I want</span> <span>to call it</span> <span>to define</span> <span>a</span> <span>rule</span> <span>template</span>. <span>But I</span> <span>do</span> <span>not know how</span>.</span><div>


<span lang="en"><br></span></div><div><span lang="en">Have you any ideas?<br> <span>Thank you in advance</span></span></div></div>
<br></div></div>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
<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></div>