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
configuration section.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.