diff --git a/imixs-archive-importer/src/main/java/org/imixs/archive/importer/ftp/CSVImportService.java b/imixs-archive-importer/src/main/java/org/imixs/archive/importer/ftp/CSVImportService.java index b7eb2e7..3f8c99b 100644 --- a/imixs-archive-importer/src/main/java/org/imixs/archive/importer/ftp/CSVImportService.java +++ b/imixs-archive-importer/src/main/java/org/imixs/archive/importer/ftp/CSVImportService.java @@ -348,6 +348,11 @@ public String importData(InputStream imputStream, String encoding, String type, // replace txtName by the key field entity.replaceItemValue("name", keyItemValue); + // Add import Information + entity.setItemValue("document.import.type", event.getSource().getItemValue("type")); + entity.setItemValue("document.import.selector", event.getSource().getItemValue("selector")); + entity.setItemValue("document.import.options", event.getSource().getItemValue("options")); + // store id into cache if (idCache.contains(keyItemValue)) { logger.warning("...WARNING dupplicate entry found: " + keyField + "=" + keyItemValue); diff --git a/imixs-archive-importer/src/main/java/org/imixs/archive/importer/ftp/FTPImportService.java b/imixs-archive-importer/src/main/java/org/imixs/archive/importer/ftp/FTPImportService.java index eb15b06..81e3faf 100644 --- a/imixs-archive-importer/src/main/java/org/imixs/archive/importer/ftp/FTPImportService.java +++ b/imixs-archive-importer/src/main/java/org/imixs/archive/importer/ftp/FTPImportService.java @@ -239,6 +239,11 @@ public ItemCollection createWorkitem(ItemCollection source, String fileName, byt workitem.event(source.getItemValueInteger(DocumentImportService.SOURCE_ITEM_EVENT)); workitem.setWorkflowGroup(source.getItemValueString("workflowgroup")); + // Add import Information + workitem.setItemValue("document.import.type", source.getItemValue("type")); + workitem.setItemValue("document.import.selector", source.getItemValue("selector")); + workitem.setItemValue("document.import.options", source.getItemValue("options")); + String contentType = MediaType.WILDCARD; if (fileName.toLowerCase().endsWith(".pdf")) { contentType = "Application/PDF";