Skip to content
Snippets Groups Projects
onActionProcess.js 698 B
Newer Older
David Büchler's avatar
David Büchler committed
import("system.logging");
import("DuplicateScanner_lib");

var filterName = "OrganisationDuplicates";
var targetEntity = "Organisation_entity";
var recordBlockSize = DuplicateScannerUtils.GetBlockSize();
logging.log(filterName + ": Delete duplicates -> ");
DuplicateScannerUtils.DeleteDuplicateClustersByTargetEntity(targetEntity);

logging.log(filterName + ": Recalculate duplicates -> ");
David Büchler's avatar
David Büchler committed
DuplicateScannerUtils.RebuildDuplicatesCache(filterName, targetEntity, recordBlockSize, null);
logging.log(filterName + ": Refresh unrelated duplicates -> ");
DuplicateScannerUtils.RefreshUnrelatedDuplicateRelations(targetEntity);

logging.log(filterName + ": Done rebuilding ");