VMware Cloud Community
carlskii
Contributor
Contributor

External JavaScript Libraries

Hi,

I have some existing javascript libraries that I need to get access to from within my scriptable tasks. Is possible to import and access them in any way?

I tried importing a library as a resource, then added it to my workflow as a ResourceElement but I'm not sure how to access it from within my scriptable task!

Carl

Tags (1)
1 Reply
tschoergez
Leadership
Leadership

Hi,

that's not really possible out of the box due to restrictions of the Rhino engine that is used to translate Javascript elements to java classes.

See this example how you might get it done anyway (I think it depends on the structure of the library you want to add)

CryptoJS Hashers and Ciphers

Cheers,

Joerg