Each time Business Process Server executes JavaScript code for a workstep, it creates a new object of class JSTools—referred to as jst—and passes it to the JavaScript execution environment. This operation is transparent to you although you must use jst objects to invoke methods for accessing dataslot values, sending e-mail, and more.
This section explains how to integrate your JavaScript code into a workstep.