Mike,

For question #1, check out the Javadoc for RuleAgent. The class header provides some decent documentation. As far as what it is reading, it takes the path specified by dir and scans that directory.

dir = new File(d);
        if (!(dir.isDirectory() && dir.exists())) {
            throw new IllegalArgumentException("The directory " + d
                    + "is not valid.");
        }
       
        scanner = new FileScanner();
        scanner.setFiles( dir.listFiles() );



On Tue, Nov 25, 2008 at 8:58 AM, J Michael Dean <mdean77@comcast.net> wrote:
Two questions.  I am interested in using RuleAgent but with the file or dir property rather than the URL.  However, it is not clear to me where the directories or files must actually be located.  If I use

dir=/

then the DirectoryScanner is invoked and claims to have found some number of files, but I have no idea WHERE it is scanning.  If I add anything like dir=/foo then I get an invalid directory exception.

If I try file=/foo.pkg then I get exception that this is invalid file.

Question 1 - is there an example somewhere that can help me understand where I am going off the track?  I am working Eclipse environment.

Question 2 - if using the BRMS and URL, can there be a backup dir, file, or cache option that is in the classpath rather than a specific directory?  I would like to distribute an Eclipse application that has a rule package deployed, but that overrides this with the URL if available.

Thanks.

- Mike


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