Guvnor saves rules (source and binary packages) using JCR (Jackrabbit or Modeshape). There are no hooks for you to save rules elsewhere.
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.
If you want to save rules in your own schema you will need to look into creating your own external mechanism.
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.
An example (although not for this specific requirement) can be found here.
With kind regards,
Mike
I've a doubt in this context.In derby it is storing all rules in indexes
format.In Mysql or Postgres will it create tables on its own.Even Ive
modified components.xml,there are no schemas that have been created in
mysql.Should I create the required schemas before I changing the xml
files.??
Please suggest some steps..
My actual requirement is.
1.When I create a rule and click save changes,that particular rule must be
stored in my required *rule_names* table in mysql.How can i achieve
that??Please suggest me
--
View this message in context: http://drools.46999.n3.nabble.com/Inserting-rules-from-guvnor-into-database-tp3632054p3633916.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users