03-19-2017 09:43 PM
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.
03-20-2017 09:12 AM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.