You would have to modify the execution server source to get what u want.<br><br><div class="gmail_quote">On Wed, Mar 25, 2009 at 1:37 PM, Anu@work <span dir="ltr">&lt;<a href="mailto:anupama.vaid@bluecasa.com">anupama.vaid@bluecasa.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Dave,<br>
<br>
I am using the web-based BRMS and Execution Server. Where do I write code?<br>
Where do I add the lines<br>
<br>
&quot;session.addEventListener&quot;<br>
<br>
Pls help.<br>
<br>
This is what I did to setup and run.<br>
<br>
1. Created guided decision table in BRMS<br>
2. Created snapshot<br>
3. Created .properties file and put in the execution server war file<br>
4. Posted knowledgebase-request from ruby and it worked<br>
<br>
I did not instantiate RuleBase, WorkingMemory, insert facts etc. Now where<br>
do I write and insert code?<br>
<br>
Thx,<br>
Anu<br>
<div><div></div><div class="h5"><br>
<br>
dave sinclair wrote:<br>
&gt;<br>
&gt; Sorry, 3.5.9<br>
&gt;<br>
&gt; On Wed, Mar 25, 2009 at 12:27 PM, Anu@work<br>
&gt; &lt;<a href="mailto:anupama.vaid@bluecasa.com">anupama.vaid@bluecasa.com</a>&gt;wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; I can write Java code but how and where do I upload it in the web-based<br>
&gt;&gt; Guvnor so that the Drools execution server (called by REST/ XML clients)<br>
&gt;&gt; can<br>
&gt;&gt; use it? Also there is no section 2.5.9 in the doc. I did look up the<br>
&gt;&gt; section<br>
&gt;&gt; on WorkingMemoryLogger but I am not using the IDE.<br>
&gt;&gt;<br>
&gt;&gt; Thx<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; dave sinclair wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; To get logging work you are gonna have to write some Java code. Look at<br>
&gt;&gt; &gt; section 2.5.9 in this doc<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; <a href="http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html_single/index.html" target="_blank">http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html_single/index.html</a><br>

&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Tue, Mar 24, 2009 at 11:36 PM, Anu@work<br>
&gt;&gt; &gt; &lt;<a href="mailto:anupama.vaid@bluecasa.com">anupama.vaid@bluecasa.com</a>&gt;wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; So far I haven&#39;t written any Java code to get my initial rules running<br>
&gt;&gt; in<br>
&gt;&gt; &gt;&gt; Guvnor. My client apps are going to be non-Java apps that send HTTP<br>
&gt;&gt; Post<br>
&gt;&gt; &gt;&gt; to<br>
&gt;&gt; &gt;&gt; the execution server. I am not sure how I could use the audit<br>
&gt;&gt; framework<br>
&gt;&gt; &gt;&gt; in<br>
&gt;&gt; &gt;&gt; the web-based Guvnor UI. I looked at WorkingMemoryLogger but I can&#39;t<br>
&gt;&gt; &gt;&gt; figure<br>
&gt;&gt; &gt;&gt; out how to use it on the server. Can you point me to some<br>
&gt;&gt; documentation<br>
&gt;&gt; &gt;&gt; or<br>
&gt;&gt; &gt;&gt; links?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Thx,<br>
&gt;&gt; &gt;&gt; Anu<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Mark Proctor wrote:<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Anu@work wrote:<br>
&gt;&gt; &gt;&gt; &gt;&gt; Hi,<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Thx to the drools community. I was able to install and run Guvnor 5<br>
&gt;&gt; &gt;&gt; CR1<br>
&gt;&gt; &gt;&gt; &gt;&gt; and<br>
&gt;&gt; &gt;&gt; &gt;&gt; Drools Execution Server 5 on Tomcat (Ubuntu) fairly easily. And it<br>
&gt;&gt; &gt;&gt; works<br>
&gt;&gt; &gt;&gt; &gt;&gt; like magic. I followed the steps below to get my rules running on<br>
&gt;&gt; &gt;&gt; Guvnor<br>
&gt;&gt; &gt;&gt; &gt;&gt; and<br>
&gt;&gt; &gt;&gt; &gt;&gt; execution server after installation<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; 1. created category<br>
&gt;&gt; &gt;&gt; &gt;&gt; 2. created package<br>
&gt;&gt; &gt;&gt; &gt;&gt; 3. declared model<br>
&gt;&gt; &gt;&gt; &gt;&gt; 4. created decision table<br>
&gt;&gt; &gt;&gt; &gt;&gt; 5. saved and validated package<br>
&gt;&gt; &gt;&gt; &gt;&gt; 6. deployed a snapshot<br>
&gt;&gt; &gt;&gt; &gt;&gt; 7. created myrule.properties file with the snapshot URL exported by<br>
&gt;&gt; &gt;&gt; &gt;&gt; Guvnor<br>
&gt;&gt; &gt;&gt; &gt;&gt; and put it in the server<br>
&gt;&gt; &gt;&gt; &gt;&gt; 8. Ran tests from rails client using JSON.<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; It all ran perfectly. Now I need to log all input facts and output<br>
&gt;&gt; &gt;&gt; facts<br>
&gt;&gt; &gt;&gt; &gt;&gt; and<br>
&gt;&gt; &gt;&gt; &gt;&gt; the rules fired each time a client posts a request to the execution<br>
&gt;&gt; &gt;&gt; &gt;&gt; server.<br>
&gt;&gt; &gt;&gt; &gt;&gt; How do I do that?<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; Take a look at the audit functionality, you can extended that be<br>
&gt;&gt; &gt;&gt; &gt; something more custom if you need. You can also look at the debug<br>
&gt;&gt; &gt;&gt; &gt; listeners, the audit framework is based on the listener framework.<br>
&gt;&gt; &gt;&gt; &gt;&gt; Please help.<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; Thx,<br>
&gt;&gt; &gt;&gt; &gt;&gt; Anu<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; &gt; rules-users mailing list<br>
&gt;&gt; &gt;&gt; &gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; &gt;&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; View this message in context:<br>
&gt;&gt; &gt;&gt; <a href="http://www.nabble.com/Guvnor-Audit-Logging-tp22690776p22694685.html" target="_blank">http://www.nabble.com/Guvnor-Audit-Logging-tp22690776p22694685.html</a><br>
&gt;&gt; &gt;&gt; Sent from the drools - user mailing list archive at Nabble.com.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; rules-users mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; &gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; rules-users mailing list<br>
&gt;&gt; &gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <a href="http://www.nabble.com/Guvnor-Audit-Logging-tp22690776p22705466.html" target="_blank">http://www.nabble.com/Guvnor-Audit-Logging-tp22690776p22705466.html</a><br>
&gt;&gt; Sent from the drools - user mailing list archive at Nabble.com.<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
<br>
--<br>
</div></div>View this message in context: <a href="http://www.nabble.com/Guvnor-Audit-Logging-tp22690776p22707326.html" target="_blank">http://www.nabble.com/Guvnor-Audit-Logging-tp22690776p22707326.html</a><br>
<div><div></div><div class="h5">Sent from the drools - user mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br>