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"><<a href="mailto:anupama.vaid@bluecasa.com">anupama.vaid@bluecasa.com</a>></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>
"session.addEventListener"<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>
><br>
> Sorry, 3.5.9<br>
><br>
> On Wed, Mar 25, 2009 at 12:27 PM, Anu@work<br>
> <<a href="mailto:anupama.vaid@bluecasa.com">anupama.vaid@bluecasa.com</a>>wrote:<br>
><br>
>><br>
>> I can write Java code but how and where do I upload it in the web-based<br>
>> Guvnor so that the Drools execution server (called by REST/ XML clients)<br>
>> can<br>
>> use it? Also there is no section 2.5.9 in the doc. I did look up the<br>
>> section<br>
>> on WorkingMemoryLogger but I am not using the IDE.<br>
>><br>
>> Thx<br>
>><br>
>><br>
>> dave sinclair wrote:<br>
>> ><br>
>> > To get logging work you are gonna have to write some Java code. Look at<br>
>> > section 2.5.9 in this doc<br>
>> ><br>
>> ><br>
>> <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>
>> ><br>
>> > On Tue, Mar 24, 2009 at 11:36 PM, Anu@work<br>
>> > <<a href="mailto:anupama.vaid@bluecasa.com">anupama.vaid@bluecasa.com</a>>wrote:<br>
>> ><br>
>> >><br>
>> >> So far I haven't written any Java code to get my initial rules running<br>
>> in<br>
>> >> Guvnor. My client apps are going to be non-Java apps that send HTTP<br>
>> Post<br>
>> >> to<br>
>> >> the execution server. I am not sure how I could use the audit<br>
>> framework<br>
>> >> in<br>
>> >> the web-based Guvnor UI. I looked at WorkingMemoryLogger but I can't<br>
>> >> figure<br>
>> >> out how to use it on the server. Can you point me to some<br>
>> documentation<br>
>> >> or<br>
>> >> links?<br>
>> >><br>
>> >> Thx,<br>
>> >> Anu<br>
>> >><br>
>> >><br>
>> >> Mark Proctor wrote:<br>
>> >> ><br>
>> >> > Anu@work wrote:<br>
>> >> >> Hi,<br>
>> >> >><br>
>> >> >> Thx to the drools community. I was able to install and run Guvnor 5<br>
>> >> CR1<br>
>> >> >> and<br>
>> >> >> Drools Execution Server 5 on Tomcat (Ubuntu) fairly easily. And it<br>
>> >> works<br>
>> >> >> like magic. I followed the steps below to get my rules running on<br>
>> >> Guvnor<br>
>> >> >> and<br>
>> >> >> execution server after installation<br>
>> >> >><br>
>> >> >> 1. created category<br>
>> >> >> 2. created package<br>
>> >> >> 3. declared model<br>
>> >> >> 4. created decision table<br>
>> >> >> 5. saved and validated package<br>
>> >> >> 6. deployed a snapshot<br>
>> >> >> 7. created myrule.properties file with the snapshot URL exported by<br>
>> >> >> Guvnor<br>
>> >> >> and put it in the server<br>
>> >> >> 8. Ran tests from rails client using JSON.<br>
>> >> >><br>
>> >> >> It all ran perfectly. Now I need to log all input facts and output<br>
>> >> facts<br>
>> >> >> and<br>
>> >> >> the rules fired each time a client posts a request to the execution<br>
>> >> >> server.<br>
>> >> >> How do I do that?<br>
>> >> >><br>
>> >> > Take a look at the audit functionality, you can extended that be<br>
>> >> > something more custom if you need. You can also look at the debug<br>
>> >> > listeners, the audit framework is based on the listener framework.<br>
>> >> >> Please help.<br>
>> >> >><br>
>> >> >> Thx,<br>
>> >> >> Anu<br>
>> >> >><br>
>> >> ><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>
>> >> ><br>
>> >> ><br>
>> >><br>
>> >> --<br>
>> >> View this message in context:<br>
>> >> <a href="http://www.nabble.com/Guvnor-Audit-Logging-tp22690776p22694685.html" target="_blank">http://www.nabble.com/Guvnor-Audit-Logging-tp22690776p22694685.html</a><br>
>> >> 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>
>> >><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>
>> ><br>
>> ><br>
>><br>
>> --<br>
>> View this message in context:<br>
>> <a href="http://www.nabble.com/Guvnor-Audit-Logging-tp22690776p22705466.html" target="_blank">http://www.nabble.com/Guvnor-Audit-Logging-tp22690776p22705466.html</a><br>
>> 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>
>><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>
><br>
><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>