[rules-users] Drools with Web Application

Jervisliu jliu at redhat.com
Thu Nov 26 23:15:45 EST 2009


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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>   




More information about the rules-users mailing list