You can read dataslot values in a workstep using the get() methods. Each of these methods are type specific and you must invoke the appropriate method based on the dataslot type.
The methods for reading dataslot values are:
Object.jst.getDataSlotValue(String dsName);
For example, you could read the string dataslot empName using the following code:
var name = jst.getDataSlotValue("empName");
Similarly, to read the double dataslot empSalary, use the following code: