'MortgageAgent'is just the name you want to use for the agent. You could use whatever name you want. The important parts of the code snippet are:

Resource changeset = ResourceFactory.newClassPathResource("org/drools/guvnor/examples/mortgage/mortgage-changeset.xml");

kagent.applyChangeSet(changeset);

Please take a look at the content of 'mortgage-changeset.xml' to get a better understanding of how this works.

Best Regards,


XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Blog @ http://ilesteban.wordpress.com



On Wed, Dec 5, 2012 at 10:44 AM, Hushen Savani <hushen.savani@elitecore.com> wrote:
MortgageAgent