ml-modules.root.data-hub.data-services.provenance.migrateProvenance.mjs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marklogic-data-hub Show documentation
Show all versions of marklogic-data-hub Show documentation
Library for Creating an Operational Data Hub on MarkLogic
'use strict';
// No privilege required: The xdmp.securityAssert call is in the migrateProvenance function.
const provMigrateLib = require("/data-hub/5/provenance/migrate-provenance.xqy");
const endpointConstants = external.endpointConstants;
const endpointState = external.endpointState;
let endpointStateObject = fn.head(xdmp.fromJSON(endpointState));
provMigrateLib.migrateProvenance(fn.head(xdmp.fromJSON(endpointConstants)), endpointStateObject ? endpointStateObject : {});
© 2015 - 2024 Weber Informatics LLC | Privacy Policy