Skip to main content

Script

A script variable is a wrapper for an ODSL script. It is used by the script service and can also run the script

Construction​

Constructor functions​

FunctionDescription
Script()Creates a new Script

Properties​

NameDescriptionType
categoryThe category of this script, e.g. ETLString
descriptionA description of what this script doesString
filenameThe filename of this scriptString
outputFormatAn optional output format, e.g. application/xml, text/html, text/csvString
scriptThe script textString
scriptTypeThe type of this script, e.g. one of [odsl, mustache, py, css, html, js, mjs, cjs]String

Methods​

NameDescriptionReturn Type
loadFrom(file)Load the script from a local fileVoid
run()Runs this scriptVoid
run(globalContext)Runs this scriptVoid