<p>No, that is not possible. </p>
<p>JCR stores its data in a non-normalized binary format.</p>
<p>You can learn more from the Apache Jackrabbit documentation. <br>
<br>
The "View Source" operation uses JCR methods to retrieve an assets definition from JCRs binary format and parse this into DRL. </p>
<p>It might be possible to add your own CheckinEvent listener and retrieve (at most) Drools internal representation of an asset before it is written to JCR but you'd still need to parse this into DRL.</p>
<p>I suggest you search the source for CheckinEvent and ContentHandler. These will give you an idea.</p>
<p>I am not at my computer now so cannot advise any mire specifically. Have a look and let me know if you can find your way.</p>
<p>sent on the move</p>
<p>On 12 Jan 2012 20:35, "kavitha sethu" <<a href="mailto:kavithasethu@gmail.com">kavithasethu@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Mike,<br><br>Sorry if am asking too many questions. But, out of curiosity just wanted to know whether i can the view source of the rules into mysql database?<br>So, in Drools if i create a package, and a rule and go to source->view source am seeing the source of that rule. Is there a way to make that write into a database as such?<br>
<br>thanks,<br>Kavitha.<br><br><div class="gmail_quote">On Wed, Jan 11, 2012 at 12:17 PM, Michael Anstis <span dir="ltr"><<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It's not to say somebody else here on the Drools forums can't give an example - just not me.<br><br>Personally I'd ask the question on a Grails forum - to get a code snippet to call a REST service.<br><br>Once you have this you can try to change to use Guvnor.<br>
<br>With kind regards,<br><br>Mike<div><div><br><br><div class="gmail_quote">2012/1/11 kavitha sethu <span dir="ltr"><<a href="mailto:kavithasethu@gmail.com" target="_blank">kavithasethu@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I want it with Grails. Ya just now i looked for this plugin. Let me read the documentation of how to implement. I was just thinking an example would be really helpful if any one has done this before. <br><br>thanks a lot.<div>
<div><br>
<br><div class="gmail_quote">On Wed, Jan 11, 2012 at 12:04 PM, Michael Anstis <span dir="ltr"><<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is that with Grails, or with Java?<br><br>The documentation gives Java examples.<br><br>I'd recommend Google'ing for how to invoke REST services from Grails. I did a quick search and <a href="http://grails.org/plugin/rest" target="_blank">http://grails.org/plugin/rest</a> looked promising.<div>
<div><br>
<br><div class="gmail_quote">2012/1/11 kavitha sethu <span dir="ltr"><<a href="mailto:kavithasethu@gmail.com" target="_blank">kavithasethu@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I read the documentation at <a href="http://docs.jboss.org/drools/release/5.3.0.Beta1/drools-guvnor-docs/html/ch09.html#d0e1695" target="_blank">http://docs.jboss.org/drools/release/5.3.0.Beta1/drools-guvnor-docs/html/ch09.html#d0e1695</a>. But i want to know how to use it with Grails/Java. I am just a beginner to Drools. <br>
<div><div>
<br><div class="gmail_quote">On Wed, Jan 11, 2012 at 11:47 AM, Michael Anstis <span dir="ltr"><<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Patience is a virtue.<br><br>I assume you've read Guvnor's documentation.<br><br>It is a marvel what can be found sometimes.<br><br><div class="gmail_quote">On 11 January 2012 18:45, kavita <span dir="ltr"><<a href="mailto:kavithasethu@gmail.com" target="_blank">kavithasethu@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Can any one provide me an example of how to use Rest API in java/ Grails.<br>
<br>
Thanks,<br>
Kavitha.<span><font color="#888888"><br>
<span><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools-Rules-Mysql-Configuration-tp3645470p3651457.html" target="_blank">http://drools.46999.n3.nabble.com/Drools-Rules-Mysql-Configuration-tp3645470p3651457.html</a><br>
</font></span><div><div>Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<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>
</div></div></font></span></blockquote></div><br>
<br>_______________________________________________<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></div><br>_______________________________________________<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></div><br>_______________________________________________<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></div><br>_______________________________________________<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></div><br>_______________________________________________<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>
<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></p>