A knowledge agent can be used to refer to your Guvnor URL and load your rules into a knowledge base:

http://docs.jboss.org/drools/release/5.5.0.Final/drools-guvnor-docs/html_single/#d0e3433

Within Spring, you just need to create a Spring bean/component, which has a field referring to the knowledge base. 

The simplest method is probably to have a @PostConstruct method in your bean, to initialise the knowledge base. If you want to refer to the knowledge base elsewhere (not just via your bean), then the annotation based config would contain something like:

    @Bean(name = "myKnowledgeBase")
    public KnowledgeBase myKnowledgeBase() {
        KnowledgeBase kbase = ...
        return kbase;
    }

… see the linked documentation to fill in the blanks for initialising your kbase.

Steve



On 12 Jun 2013, at 06:45, Raju Bandaru <raju_bandaru@infosys.com> wrote:

Hi,

Am new to guvnor . I have created decision table based rules in guvnor which
is located in tomcat server and now i want to invoke that rule from my
sample spring application .

I don't know how to do that even searched lot but couldn't find any proper
answer so please help me its very urgent for me .

Concept is to invoke a decision table based rule created from guvnor from
spring application and modify it .

Please help me .

Regards,
Raju



--
View this message in context: http://drools.46999.n3.nabble.com/Decision-table-invoked-frm-Spring-app-tp4024263.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users