diff --git a/entity/DuplicateScanner_entity/entityfields/runactiongroup/children/rebuildorganisationduplicatescache/onActionProcess.js b/entity/DuplicateScanner_entity/entityfields/runactiongroup/children/rebuildorganisationduplicatescache/onActionProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..811f26d0b37abeb8167e4b63b6f7faed3df20e0b --- /dev/null +++ b/entity/DuplicateScanner_entity/entityfields/runactiongroup/children/rebuildorganisationduplicatescache/onActionProcess.js @@ -0,0 +1,20 @@ +import("system.logging"); +import("DuplicateScanner_lib"); + +var filterName = "OrganisationDuplicates"; +var targetEntity = "Organisation_entity"; +var recordBlockSize = 500; +let duplicateFieldsConfig = DuplicateScannerUtils.LoadIndexFieldsConfiguration(filterName, targetEntity); +let resultFields = DuplicateScannerUtils.LoadResultFields(filterName, targetEntity); + +//logging.log("duplicateFieldsConfig -> " + duplicateFieldsConfig); +//logging.log("resultFields -> " + resultFields); + +logging.log("Delete all " + targetEntity + " duplicates"); +DuplicateScannerUtils.DeleteDuplicateClustersByTargetEntity(targetEntity); + +logging.log("Recalculate all " + targetEntity + " duplicates"); +DuplicateScannerUtils.RebuildDuplicatesCache(filterName, targetEntity, recordBlockSize, +duplicateFieldsConfig, resultFields, null); + +DuplicateScannerUtils.RefreshUnrelatedDuplicateRelations(targetEntity); \ No newline at end of file diff --git a/entity/DuplicateScanner_entity/entityfields/runactiongroup/children/rebuildpersonduplicatescache/onActionProcess.js b/entity/DuplicateScanner_entity/entityfields/runactiongroup/children/rebuildpersonduplicatescache/onActionProcess.js index e17bbbb82b40c34ff88ae4fd23e189ddf6eb40a6..155fee2cdccb0ff052ac342adbcc71990ea5cf8e 100644 --- a/entity/DuplicateScanner_entity/entityfields/runactiongroup/children/rebuildpersonduplicatescache/onActionProcess.js +++ b/entity/DuplicateScanner_entity/entityfields/runactiongroup/children/rebuildpersonduplicatescache/onActionProcess.js @@ -7,13 +7,13 @@ var recordBlockSize = 500; let duplicateFieldsConfig = DuplicateScannerUtils.LoadIndexFieldsConfiguration(filterName, targetEntity); let resultFields = DuplicateScannerUtils.LoadResultFields(filterName, targetEntity); -logging.log("duplicateFieldsConfig -> " + duplicateFieldsConfig); -logging.log("resultFields -> " + resultFields); +//logging.log("duplicateFieldsConfig -> " + duplicateFieldsConfig); +//logging.log("resultFields -> " + resultFields); -logging.log("Löschen von PERSON Dubletten -> "); +logging.log("Delete all " + targetEntity + " duplicates"); DuplicateScannerUtils.DeleteDuplicateClustersByTargetEntity(targetEntity); -logging.log("Neu berechnen von PERSON Dubletten -> "); +logging.log("Recalculate all " + targetEntity + " duplicates"); DuplicateScannerUtils.RebuildDuplicatesCache(filterName, targetEntity, recordBlockSize, duplicateFieldsConfig, resultFields, null);