Deepak Jambhekar wrote:
Hi Jervisliu,
I have a similar case where in I need to integrate Guvnor to
one of my web application which is developed in Struts Framework...
Can you pls suggest me how can I do this?
.
This depends on what Guvnor functions you want to call from your web
application. And you want to call them from your server side application
or from your client side. The easiest way is to expose Guvnor through
your own servlets. You need to write some servlets, put them in
Guvnor.war. An alternative is to expose Guvnor through RESTful
interface, eg., Atom/Pub based. The current version of Guvnor provides a
preliminary support of Atom/Pub. For example, you can find a RSS icon on
Asset widget. Using that RSS URL, your application can do some simple
interactions with Guvnor server such as subscribing to change history
etc. However as I said this is only a "preliminary" support, we are
still far from a fully "RESTfulized" Guvnor. If you are interested in
this approach, please take a look into Guvnor SOA project [1]. This
project is still under prototyping phase, but the Atom/Pub interface
part is almost done. SVN is [2].
[1].
http://www.jboss.org/guvnor/
[2].
https://svn.jboss.org/repos/guvnor/trunk
Jervis
Another approach which I think is the
Deepak Prabhakar Jambhekar
-----rules-users-bounces(a)lists.jboss.org wrote: -----
To: Rules Users List <rules-users(a)lists.jboss.org>
From: Jervisliu <jliu(a)redhat.com>
Sent by: rules-users-bounces(a)lists.jboss.org
Date: 11/27/2009 09:45AM
Subject: Re: [rules-users] Drools with Web Application
Things can be very straightforward if your web application is GWT
based.
You can use GWT RPC to talk to the Guvnor server. See
trunk\drools-guvnor\src\main\java\org\drools\guvnor\server\ServiceImplementation.java
for details. Most functions that are called from Guvnor GUI are
implemented in this class. If this doesnt work for you, you will
need to
somehow expose Guvnor server side functions
(ServiceImplementation.java)
by yourself, eg, through a Servlet or through a RESTful service
interface. Unfortunately Guvnor does not have this capability yet,
though there were some talks about implementing such features in the
future. You may want to take a look at Apache CXF [1] or JBOSS
RESTEasy
[2] on how to use a JSR-311 implementation to publish Guvnor as
Restful
(Atom/Pub) services. Let me know if you have interest to explore this
further, I can provide more information on this.
[
1].http://cwiki.apache.org/CXF20DOC/jax-rs.html
[2].
http://www.jboss.org/resteasy/
Cheers,
Jervis
> Hello,
>
> Drools is very new to me. So please excuse me if this question
sounds too naive.
>
> Basically my requirement is: I have a web based (3-tier j2ee)
> application which is
> deployed in JBoss AS. Now I want to incorporate some business rule
> implementations with this application so that end users, who are not
> very technical, can add/modify the rules according to their need. I
> suppose Drools Guvnor will be the front end and rules repository and
> Drools Expert will be
> the back end for such requirements. Please correct me if I am wrong.
>
> I had gone through the drools documentation. That talks about
> stand-alone application for guvnor itself, but I want to use Guvnor
> inside my existing application itself, preferably by using some
Guvnor API.
>
> Can some one please provide some insight on how to do this.
Also, I'll
> appreciate if some one can point me to some getting started/best
> practice documents for these stuffs?
>
> Many thanks in advance,
> --
> Sahid
> Argue with idiots, and you become an idiot. - PG
> _______________________________________________
> rules-users mailing list
> rules-users(a)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
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you