function preProcessActivationData()

in core/nodejsActionBase/platform/knative.js [215:231]


function preProcessActivationData(env, activationdata) {
    try {
        // Note: we move the values here so that the "run()" handler does not have
        // to move them again.
        Object.keys(activationdata).forEach(
            function (k) {
                if (typeof activationdata[k] === 'string') {
                    var envVariable = OW_ENV_PREFIX + k.toUpperCase();
                    process.env[envVariable] = activationdata[k];
                }
            }
        );
    } catch(e){
        console.error(e);
        throw("Unable to process Activation data: " + e.message);
    }
}