MR
04/01/2021, 8:48 PMfunction afterSubmit(context){
var exampleData = '31396046';
var scriptTask = task.create({
taskType: task.TaskType.MAP_REDUCE
});
scriptTask.scriptId = 'customscript_some_valid_script_id';
scriptTask.deploymentId = 'customdeploy_some_valid_deploy';
scriptTask.params = {
custscript_data: exampleData
};
var scriptTaskId = scriptTask.submit();
}
And in the getInputData of the M/R, something like:
var script = runtime.getCurrentScript();
var needThis = script.getParameter({name:'custscript_data'});
log.debug("data needed", needThis);
So the M/R fires, and the log hits, but needThis
is empty. Obviously, I'd like it to be the exampleData var from the UE script. I am guessing i've set something up incorrectly? Is the param name set in the M/R deployment record? Thank you.battk
04/01/2021, 8:53 PMbattk
04/01/2021, 8:54 PMMR
04/01/2021, 8:56 PMMR
04/01/2021, 9:03 PM