When I try to make a call to a package from a userapp workflow ECMA
script it gives me a "ReferenceError: Packages is not defined" error
Here are a couple of examples I have tried:

Packages.java.lang.System.out.println('sysout test');

var logger = Packages.org.apache.log4j.Logger.getLogger("id");

I found in documentation that this should be possible:


My guess is maybe the .jar file is not in the correct lib folder or
something needs to be added to the workflow. I have put it in the PM
and jre lib folder and restarted Tomcat but same result. We are on
version 4.5 and running under Tomcat. Anyone have any suggestions I
could try or examples if you are currently doing something like this in
your workflows?

CHSB1130's Profile: https://forums.netiq.com/member.php?userid=6130
View this thread: https://forums.netiq.com/showthread.php?t=53919