All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ml-modules.transforms.mlRunIngest.sjs Maven / Gradle / Ivy

There is a newer version: 6.1.1
Show newest version
'use strict';

const mjsProxy = require("/data-hub/core/util/mjsProxy.sjs");
const ingestTransform = mjsProxy.requireMjsModule("/data-hub/core/stepRunner/ingestTransform.mjs");

function transform(context, params, content) {
  const results = ingestTransform.transform(context, params, content);
  Object.assign(context, results.context);
  return Sequence.from(results.content.map(r => {
    try {
      return xdmp.unquote(xdmp.quote(r))
    } catch (e) {
      return r;
    }
  }));
}

exports.transform = transform;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy