Accessing Java
The ServiceNow platform is written in Java using the Apache Struts framework. In earlier versions of ServiceNow, scripts could, through the support in Rhino, access Java code and execute calls to backend functions. For example, you might find examples that use the ftp4che FTP library. This is built into the platform to enable the Import Sets functionality, which we'll explore in Chapter 7, Exchanging Data – Import Sets, Web Services, and other Integrations. Since Java code is organized in classes and then into packages, Rhino normally provides a global variable, called Packages, that enables the script writer to access any code they can find.
Since the Calgary version of ServiceNow, unfettered Java access has been curtailed ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access