Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Overview

Provides source builders who need to add javascript to the enrichment process with a single global set of variables and functions that can be used in the individual "scriptlets" other elements provide. The scripts provided (and same for the inputs) are executed once per source per harvest cycle.

TODO

Format

TOD convert to JSON

{
	"display": string, 
	"globals": { } // see GlobalScriptPojo below
}
//////////////////////////////////
	public static class GlobalScriptPojo {
		public List<String> imports; // An optional list of URLs that get imported before the scripts below are run
		public List<String> scripts; // A list of (java)script code blocks that are evaluated in order (normally only need to specify one)
		public String scriptlang; // Currently only "javascript" is supported
	}

Legacy documentation, replaces the following:

TODO

Description

Legacy documentation:

TODO

Examples

TODO

  • No labels