Try OpenEdge Now
skip to main content
Application Developer's Guide
Developing applications with rollback support : Writing JavaScript code for rollback worksteps
 

Writing JavaScript code for rollback worksteps

The following restrictions apply to using JavaScript for rollback worksteps:
*You write your JavaScript code as functions.
*Do not dangle any expressions outside the functions.
*Use only one driver function, which can invoke other functions.
*Third-party tools in JavaScript must be used as static methods.
Note: You cannot debug JavaScript using a debugger. However, you can use the jst.writeLog() method to print the debug information in the log file. The JavaScript Engine integration code writes the information or error messages to the bizlogic.log file.
* Sample Javascript code