Guvnor exposes its resources (compiled or not) through urls. You can access
those urls to get the rules, and add them to a kbase. If that it what you
need, then you don't need execution server at all.
Best,
2010/7/3 Premkumar Stephen <prem18(a)gmail.com>
Hi Vignesh,
Please read Mauricio's explanation above on when to use.
In addition, this approach frees you up from using Drools from only java
applications. For instance, we invoke the rules engine from Rails code.
Basically, you need to do the following steps:
1) Create a xml or json in the prescribed format (format is documented)
2) Invoke the drools server URL and pass the data.
3) The rules engine ( if deployed from guvnor, will be running at the port
-- check this from guvnor) - will provide you an answer, which you need to
parse back ( from xml or json)
Currently, only stateless calls can be made. Mauricio is working on a
complete rewrite that will allow stateful calls to be made as well.
Regards,
Prem
On Fri, Jul 2, 2010 at 11:31 PM, Vignesh <viki.ccc(a)gmail.com> wrote:
>
> Hi Prem,
>
> I have tried the sample codes available to invoke a rule created in
> Guvnor/rules file directly and I am able to do it successfully and I had
> tried different stuffs over it. Currently what I am working on is, I need
> to
> invoke the rules via web service and return the values depending upon the
> validation to the calling service and use these as response to my further
> processing.
>
> I was able to achieve the same through a bottom up web service/stand alone
> program. But earlier I had put a post on how to invoke a rule in guvnor
> using web service, I got some reply saying I can use Execution server for
> this purpose and I just started trying it with out much idea on it and got
> stuck up.
>
> Thanks,
> Viki
> --
> View this message in context:
>
http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Execution-Serv...
> Sent from the Drools - User mailing list archive at
Nabble.com.
> _______________________________________________
> rules-users mailing list
>
rules-users@lists.jboss.org<https://mail.google.com/mail?view=cm&tf=0&to=rules-users@lists.jboss.org>
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users