Log file in Alfresco Activiti

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Labels:
- Labels:
-
Alfresco Process Services
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
