Hi Payet,
Thanks for the solution.
I just had one more question:
Whats the main benefit of doing it in this manner??
Because I would be basically creating my change-set.xml file by pulling in data from my
directory containing my rule files which would then be added to my knowledgebuilder.
The other option was to list all the existing files and add them to the packagebuilder.
Both seem to in the end do the same thing as per my understanding.
What is the plus point of the first approach?? Is it not just longer??
Thanks
M
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of rules-users-request(a)lists.jboss.org
Sent: Tuesday, June 15, 2010 12:33 PM
To: rules-users(a)lists.jboss.org
Subject: rules-users Digest, Vol 43, Issue 76
Send rules-users mailing list submissions to
rules-users(a)lists.jboss.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.jboss.org/mailman/listinfo/rules-users
or, via email, send a message with subject or body 'help' to
rules-users-request(a)lists.jboss.org
You can reach the person managing the list at
rules-users-owner(a)lists.jboss.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of rules-users digest..."
Today's Topics:
1. Re: Dynamic rule file uploading (PAYET, Manuel)
2. Re: Uploading rules dynamically (Fnu Mahalakshmi)
----------------------------------------------------------------------
Message: 1
Date: Tue, 15 Jun 2010 18:02:06 +0200
From: "PAYET, Manuel" <manuel.payet(a)capgemini.com>
Subject: Re: [rules-users] Dynamic rule file uploading
To: Rules Users List <rules-users(a)lists.jboss.org>
Message-ID:
<5104F06B63E3164FAEB2F42B920311654CCCA447(a)CORPMAIL05.corp.capgemini.com>
Content-Type: text/plain; charset="iso-8859-1"
So, why wouldn't you dinamically construct you change-set.xml file?
You have lots of solutions to generate xml files in Java
-----Message d'origine-----
De : rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] De
la part de Fnu Mahalakshmi
Envoy? : mardi 15 juin 2010 17:59
? : 'rules-users(a)lists.jboss.org'
Objet : Re: [rules-users] Dynamic rule file uploading
Hi,
Thanks for the quick reply.
But even by using knowledge agent I have to keep specifying each of the files one by one
right? Which ever is contained in my folder with all the rule files? As I would keep
doing:
kbuilder.add( ResourceFactory.newUrlResource( "file://myrules.drl" ),
ResourceType.DRL);
So again I would have to list all my files and pass it to the knowledge agent which would
add the new rule to the existing package( created using package builder).
Am I going wrong here??
Please help.
Thank you.
M
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of rules-users-request(a)lists.jboss.org
Sent: Tuesday, June 15, 2010 11:13 AM
To: rules-users(a)lists.jboss.org
Subject: rules-users Digest, Vol 43, Issue 74
Send rules-users mailing list submissions to
rules-users(a)lists.jboss.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.jboss.org/mailman/listinfo/rules-users
or, via email, send a message with subject or body 'help' to
rules-users-request(a)lists.jboss.org
You can reach the person managing the list at
rules-users-owner(a)lists.jboss.org
When replying, please edit your Subject line so it is more specific than "Re:
Contents of rules-users digest..."
Today's Topics:
1. Uploading rules dynamically (Fnu Mahalakshmi)
2. Dynamic rule file uploading (Fnu Mahalakshmi)
3. Re: Dynamic rule file uploading (PAYET, Manuel)
----------------------------------------------------------------------
Message: 1
Date: Tue, 15 Jun 2010 10:56:42 -0400
From: Fnu Mahalakshmi <FMahalakshmi(a)nyx.com>
Subject: [rules-users] Uploading rules dynamically
To: "'rules-users(a)lists.jboss.org'" <rules-users(a)lists.jboss.org>
Message-ID:
<994758E35590274E955FA75763C5AA5002D0111F(a)MTEXMBXP01.ad.NYX.com>
Content-Type: text/plain; charset="us-ascii"
Hi Guys,
How can I dynamically upload my rules? Can someone point me towards some documentation for
the same??
Thank you.
M
</pre>
<P><hr size=1></P>
<P><STRONG><font color=green>Please consider the environment before
printing this email.</font></STRONG></P> <P><STRONG>Visit
our website at <a href="http://www.nyse.com">http://www.nyse.com</a>
<br>
*****************************************************************************
<br>
Note: The information contained in this message and any attachment to it is privileged,
confidential and protected from disclosure. If the reader of this message is not the
intended recipient, or an employee or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have received this
communication in error, please notify the sender immediately by replying to the message,
and please delete it from your system. Thank you. NYSE Euronext.
</STRONG></P><pre>