Setting contexts and inputs

Input values and context environment variables can be accessed using the input.<fieldName>, and context.environment.<fieldName> syntax.

Input field names are defined in the manifest.json. An example manifest.json file is included in the Example job package section.

Contexts are created and managed in the Squiz DXP Home  Configuration  Job runner  Contexts configuration section.

Because Job Runner executes jobs in a sandbox virtual machine, the process environment variable that some packages or libraries use will not run as part of a job uploaded to Job Runner.

Within the run function of the main.js example, info.context is passed to the makeRequest function as a context parameter, which is then referenced as such in the makeRequest function.