<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>A knowledge agent can be used to refer to your Guvnor URL and load your rules into a knowledge base:</div><div><br></div><div><a href="http://docs.jboss.org/drools/release/5.5.0.Final/drools-guvnor-docs/html_single/#d0e3433">http://docs.jboss.org/drools/release/5.5.0.Final/drools-guvnor-docs/html_single/#d0e3433</a></div></div><div><br></div><div>Within Spring, you just need to create a Spring bean/component, which has a field referring to the knowledge base.&nbsp;</div><div><br></div><div>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:</div><div><br></div><div><div>&nbsp; &nbsp; @Bean(name = "myKnowledgeBase")</div><div>&nbsp; &nbsp; public KnowledgeBase myKnowledgeBase() {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; KnowledgeBase kbase = ...</div><div>&nbsp; &nbsp; &nbsp; &nbsp; return kbase;</div><div>&nbsp; &nbsp; }</div></div><div><br></div><div>… see the linked documentation to fill in the blanks for initialising your kbase.</div><div><br></div><div>Steve</div><div><br></div><div><br></div><br><div><div>On 12 Jun 2013, at 06:45, Raju Bandaru &lt;<a href="mailto:raju_bandaru@infosys.com">raju_bandaru@infosys.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi, <br><br>Am new to guvnor . I have created decision table based rules in guvnor which<br>is located in tomcat server and now i want to invoke that rule from my<br>sample spring application . <br><br>I don't know how to do that even searched lot but couldn't find any proper<br>answer so please help me its very urgent for me . <br><br>Concept is to invoke a decision table based rule created from guvnor from<br>spring application and modify it . <br><br>Please help me . <br><br>Regards, <br>Raju <br><br><br><br>--<br>View this message in context: <a href="http://drools.46999.n3.nabble.com/Decision-table-invoked-frm-Spring-app-tp4024263.html">http://drools.46999.n3.nabble.com/Decision-table-invoked-frm-Spring-app-tp4024263.html</a><br>Sent from the Drools: User forum mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/rules-users<br></blockquote></div><br></body></html>