Guvnor saves rules (source and binary packages) using JCR (Jackrabbit or Modeshape). There are no hooks for you to save rules elsewhere.<br><br>JCR can be configured to persist to a database (this, I believe, is what Thomas eludes to). The schema is as defined by and created by JCR.<br>
<br>If you want to save rules in your own schema you will need to look into creating your own external mechanism.<br><br>An approach would be to subscribe to Guvnor's RSS feed and, when you observe a rule is changed, use the REST API to retrieve it and save as you see fit.<br>
<br>An example (although not for this specific requirement) can be found <a href="http://community.jboss.org/wiki/PublishDroolsArtifactsFromAProductionEnvironment">here</a>.<br><br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">
On 5 January 2012 04:47, srinivasasanda <span dir="ltr"><<a href="mailto:srinivasasanda@gmail.com">srinivasasanda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've a doubt in this context.In derby it is storing all rules in indexes<br>
format.In Mysql or Postgres will it create tables on its own.Even Ive<br>
modified components.xml,there are no schemas that have been created in<br>
mysql.Should I create the required schemas before I changing the xml<br>
files.??<br>
<br>
Please suggest some steps..<br>
<br>
My actual requirement is.<br>
<br>
1.When I create a rule and click save changes,that particular rule must be<br>
stored in my required *rule_names* table in mysql.How can i achieve<br>
that??Please suggest me<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Inserting-rules-from-guvnor-into-database-tp3632054p3633916.html" target="_blank">http://drools.46999.n3.nabble.com/Inserting-rules-from-guvnor-into-database-tp3632054p3633916.html</a><br>
</font></span><div class="HOEnZb"><div class="h5">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">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>