*/
public void start() throws IOException {
init();
List<PdfFileRule> rules = new SerializedFileRules().getRules();
PdfFolderParser pdfFolderParser = new PdfFolderParser(index);
for (PdfFileRule pdfFileRule : rules) {
File f;
while( (f = pdfFolderParser.parseFile(pdfFileRule)) != null) {
Logger.getLogger(Robot.class.getName()).log(Level.INFO, index+" - Moving file "+f.getName()+" to "+pdfFileRule.getDestinationSubFolder().getAbsolutePath());
moveFile(f, pdfFileRule.getDestinationSubFolder());
}
}
callBack.done(index);