You can start by reading these links about change-set:
http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e918
http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e1076
http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e1266

And, from Guvnor's documentation:
http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-guvnor/html_single/index.html#d0e1259

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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


On Wed, Apr 13, 2011 at 6:49 AM, Sumeet Karawal <sumeet.karawal@tcs.com> wrote:

Hi All,

Could you please help me on this. I am trying to create rules in Guvnor and
then using those in eclipse.

These are the steps that I am doing

1) I have created a POJO in eclipse

2) Exported as .jar and uploading it in Guvnor under a package.

3) I have created rules also in Guvnor and the test scenario there is also
working fine.

4) I build the package and the binaries get generated.

But I am not getting how to use those rule in my Java Application running
on Eclipse. I have gone through the user guide and forums also but not
getting the concrete solution for this.

>From somewhere I got the following code :

KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent
( "MyAgent" );


kagent.applyChangeSet( ResourceFactory.newUrlResource( url ) );


KnowledgeBase kbase = kagent.getKnowledgeBase();





But how to work according to it. Which url I have to give here, also I am
not able to locate the changeset.xml.


Also what should I write in the .properties file and how to refer to that.


Please it would be very helpful if anyone could provide help to me on this
as I am stuck from last 4 days on this. Is there any example that I can
refer to?



Thanks and Regards,
Sumeet

Mailto: sumeet.karawal@tcs.com

rules-users@lists.jboss.org

=====-----=====-----=====
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



_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users