} else {
processing = "file-download";
}
- docDTO.addFile(tag.value().getFile().getRelativePath(), aState,
- processing, false);
+ File aFile = tag.value().getFile();
+ docDTO.addFile(aFile.getIndex(), aFile.getRelativePath(),
+ aState, processing, false);
// Process all exported files
for (Relation rel : tag.value().getRelations(
ConvertsRelation.class)) {
- File aFile = ((ConvertsRelation) rel).getTo();
+ aFile = ((ConvertsRelation) rel).getTo();
fileFormat = aFile.getFormat();
doImport = getProjectSettings().doImport(docType,
fileFormat);
} else {
processing = "file-download";
}
- docDTO.addFile(aFile.getRelativePath(), aState, processing,
- false);
+ docDTO.addFile(aFile.getIndex(), aFile.getRelativePath(),
+ aState, processing, false);
}
}
}