Skip to main content

Include Calls

Currently,Service thereSuite iscurrently onprovides the following calls for including JavaScript files and handling binary data.

include(String: file)

Executes the specified file. Use this call to includeadd morelibraries. JS files

include(String: file)

Include will execute the file. Useful for adding libraries, keep in mind if the include is requested N times withIf the same file,file is included N times, it willexecutes execute the file N times. The filepath is relative to the current file.


readBytes(String: file) → byte[]

Reads a binary file and returns a byte[].byte Example:array.

var myStringVar = new java.lang.String(readBytes("{ds}/binary.dat"));
assertEquals("hello world", myStringVar);
var $aJsonString = new java.lang.String(readBytes("{mds}/somejsonfile.json"));
var jsonObj = JSON.parse($aJsonString);


createFolder(String: folder)

Creates a folder with providethe namespecified name.


Last updated: AprilOctober 14,15, 20232026

If you have any feedback on this topic, please contact us at documentation@appvance.ai.