Reading process information
You can invoke the following methods to read the current workstep name, process instance name, and process template name.
jst.getWorkstepName();
jst.getProcessInstanceName();
jst.getProcessTemplateName();
For example, to read the current workstep name, use the following code:
var wsn = jst.getWorkstepName();