Re: [rules-users] Drools Rules Mysql Configuration

2012-01-12 Thread kavitha sethu
Hi Mike, 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? 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

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-12 Thread Michael Anstis
No, that is not possible. JCR stores its data in a non-normalized binary format. You can learn more from the Apache Jackrabbit documentation. The View Source operation uses JCR methods to retrieve an assets definition from JCRs binary format and parse this into DRL. It might be possible to add

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-12 Thread kavitha sethu
I searched on the document of jackrabbit and found something called as datastore and implemented that in the components.xml but still it jus created a empty table called as datastore . I tried searching the source for checkinevent but i was not successful. I really dont know how to go from here. I

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-11 Thread kavitha sethu
Hi Mike, Can you tell me how to Use Rest API to retreive the plain text rules. Because when i went to http://localhost:8081/guvnor/rest/packages/edu.arizona/assets/Lowers am able to see some xml but not the exact rule to parse. How can i accomplish it? Thanks, Kavitha. On Mon, Jan 9, 2012 at

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-11 Thread kavita
Hi, Can any one provide me an example of how to use Rest API in java/ Grails. Thanks, Kavitha. -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Rules-Mysql-Configuration-tp3645470p3651457.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-11 Thread Michael Anstis
Patience is a virtue. I assume you've read Guvnor's documentation. It is a marvel what can be found sometimes. On 11 January 2012 18:45, kavita kavithase...@gmail.com wrote: Hi, Can any one provide me an example of how to use Rest API in java/ Grails. Thanks, Kavitha. -- View this

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-11 Thread kavitha sethu
I read the documentation at http://docs.jboss.org/drools/release/5.3.0.Beta1/drools-guvnor-docs/html/ch09.html#d0e1695. But i want to know how to use it with Grails/Java. I am just a beginner to Drools. On Wed, Jan 11, 2012 at 11:47 AM, Michael Anstis michael.ans...@gmail.comwrote: Patience is

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-11 Thread Michael Anstis
Is that with Grails, or with Java? The documentation gives Java examples. I'd recommend Google'ing for how to invoke REST services from Grails. I did a quick search and http://grails.org/plugin/rest looked promising. 2012/1/11 kavitha sethu kavithase...@gmail.com I read the documentation at

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-11 Thread kavitha sethu
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. thanks a lot. On Wed, Jan 11, 2012 at 12:04 PM, Michael Anstis michael.ans...@gmail.comwrote:

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-11 Thread Michael Anstis
It's not to say somebody else here on the Drools forums can't give an example - just not me. Personally I'd ask the question on a Grails forum - to get a code snippet to call a REST service. Once you have this you can try to change to use Guvnor. With kind regards, Mike 2012/1/11 kavitha

[rules-users] Drools Rules Mysql Configuration

2012-01-09 Thread kavita
Hi, I want to write the rules from drools to my mysql database. Using Repository configuration, i have configured my drools guvnor to write to mysql database. But, i am not seeing any tables which has rules in a readable format? Can anyone tel me which table and field to look for? Am a beginner

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-09 Thread Esteban Aliverti
Even if you have configured a database to store your rules, JCR is using its internal format to store them. Not sure if you will be able to see them in any readable way. Did you try using webdav? Best Regards, Esteban Aliverti - Developer @

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-09 Thread kavita
Thanks for the reply. Can you tel me what is webdav? Also, is there any way that i can change format of JCR? Because right now, i see a table called as versioning_pm_refs under my guvnor database which has some kind of data something like this in the field node_id. When i tried adding a new rule,

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-09 Thread Esteban Aliverti
Guvnor relies on JCR to persist its data. Maybe there is a way to configure Jackrabbit (the JCR implementation that Guvnor uses by default), but I don't know. Webdav is another way to access the assets inside guvnor. Using a webdav browser (I think Internet Explorer is one. Another one is

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-09 Thread Michael Anstis
Guvnor uses JCR (Jackrabbit or Modeshape). JCR can be configured to store it's binary data in a database. The configuration you make to Guvnor to use a database configures JCR. The resulting tables are of JCRs requirements and needs. As you have discovered JCR has no knowledge of rules. You

Re: [rules-users] Drools Rules Mysql Configuration

2012-01-09 Thread kavitha sethu
Thanks for the reply Mike Esteban Aliverti. Using the webdav i was able to see the xml format of the rule through http://localhost:8081/guvnor/org.drools.guvnor.Guvnor/webdav/packages/edu.arizona/Lowers.brl. Can anyone provide me simple example of how to pass this URL to Grails Application Or