Unanswered question

How to extract the ScriptName in the Javascript.

In the Javascript, would like to extract the script name dynamically during runtime to write to the csv file.

Lisa B.
Lisa B.

Lisa B.

Level
0
6 / 100
points

Answers

Hi, try this:

var theVU_id = context.currentVU.id;
var theVU_name = context.currentVU.name;
var theVU_pop = context.currentVU.getPopulationName();

var theLG_id = context.currentLG.id;
var theLG_name = context.currentLG.name;
var theLG_zone = context.currentLG.getZoneName();

logger.debug("\n\n theVU_vu_id=\t"+theVU_id+"\n theVU_name=\t"+theVU_name+"\n theVU_pop=\t"+theVU_pop+"\n theLG_lg_id=\t"+theLG_id+"\n theLG_name=\t"+theLG_name+"\n theLG_zone=\t"+theLG_zone);