[rules-users] Drools Execution Server and Guvnor

Premkumar Stephen prem18 at gmail.com
Sat Jul 3 09:00:31 EDT 2010


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 at 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-Server-and-Guvnor-tp933786p940081.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100703/ac72566e/attachment.html 


More information about the rules-users mailing list