As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi all,
Can someone explain how and where can I get to see the output for a 'Console.log(".....")' statement written in a script task in Activiti workflow?
Regards and thanks in advance.
I think you are confused.
It sounds like you are using javascript as your scripting language and getting an error somethign like:
javax.script.ScriptException: ReferenceError: "console" is not defined in <eval> at line number 22
This is because "console" (like document) is a browser concept and o ly works when running javascript in a browser.
To log output from a Javascript script task in Activiti you should use the "print" or "println" statement:
e.g. println("Hello World");
Cheers,
Greg