[rules-users] Questions about Drools runtime & Guvnor

Michael Anstis michael.anstis at gmail.com
Thu Feb 14 04:19:34 EST 2013


Hello,

>Q1 : How can Drools runtime (Knowledge builder / base) gets/collects
*.brl, .drl files from Guvnor (using REST api, ....) ?

It should be possible to use KnowledgeBuilder with URL resources to
retrieve *source* from Guvnor's REST API. Many Guvnor assets are stored in
an internal format (BRL, GDST, SCENARIO) that are not understood by Drools
Expert. Retrieving the source will return DRL for the assets, which of
course is understood by Drools Expert.

>Q2 : How can drools runtime being informed that rules have been modified
in Guvnor Repo ?

This might prove useful:
https://community.jboss.org/wiki/PublishDroolsArtifactsFromAProductionEnvironment

>Q4 : Is it a good practice to access Guvnor from Drools runtime or better
to export from Guvnor a package and import it in Drools runtime (Can we
import guvnor package in Drools runtime) ?

Drools Expert can load Guvnor's "packages" (which are just a compiled and
serialized KnowledgeBase). The benefit of using this over source DRL is
that it has been pro-compiled.

The "package" can be either exported from Guvnor or retrieved with REST or
a KnowledgeAgent and changesets.

With kind regards,

Mike

On 12 February 2013 10:12, Charles Moulliard <cmoulliard at redhat.com> wrote:

>  Hi,
>
> I have different questions concerning drools & guvnor.
>
> Q1 : How can Drools runtime (Knowledge builder / base) gets/collects
> *.brl, .drl files from Guvnor (using REST api, ....) ?
> Q2 : How can drools runtime being informed that rules have been modified
> in Guvnor Repo ?
> Q2 : Is there a document describing best practices to setup knowledge base
> (how many rules / base, ...) and sessions to be created ?
> Q3 : Is it a good practice to access Guvnor from Drools runtime or better
> to export from Guvnor a package and import it in Drools runtime (Can we
> import guvnor package in Drools runtime) ?
>
> Regards,
>
> --
> Ir. Charles Moulliard
> Sr. Enterprise Architect / Apache Committer | RedHat, Inc
> FuseSource is now part of Red Hat
> cmoullia at redhat.com | mobile: +32 473 604 014 | RedHat.com<http://www.redhat.com>
> skype: cmoulliard | twitter: @cmoulliard
> blog: cmoulliard.blogspot.com
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130214/f09a94ac/attachment.html 


More information about the rules-users mailing list