<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Log file in Alfresco Activiti  in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/log-file-in-alfresco-activiti/m-p/32391#M13722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are confused.&lt;/P&gt;&lt;P&gt;It sounds like you are using javascript as your scripting language and getting an error somethign like:&lt;/P&gt;&lt;PRE style="color: #242729; border: 0px; font-size: 13px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="border: 0px; font-size: 13px;"&gt;javax.script.ScriptException: ReferenceError: "console" is not defined in &amp;lt;eval&amp;gt; at line number 22&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is because "console" (like document) is a browser concept and o ly works when running javascript in a browser.&lt;/P&gt;&lt;P&gt;To log output from a Javascript script task in Activiti you should use the "print" or "println" statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. println("Hello World");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Mar 2017 13:12:41 GMT</pubDate>
    <dc:creator>gdharley</dc:creator>
    <dc:date>2017-03-20T13:12:41Z</dc:date>
    <item>
      <title>Log file in Alfresco Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/log-file-in-alfresco-activiti/m-p/32390#M13721</link>
      <description>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? &amp;nbsp;Regards and thanks in advance.</description>
      <pubDate>Mon, 20 Mar 2017 01:43:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/log-file-in-alfresco-activiti/m-p/32390#M13721</guid>
      <dc:creator>jeenut</dc:creator>
      <dc:date>2017-03-20T01:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Log file in Alfresco Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/log-file-in-alfresco-activiti/m-p/32391#M13722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are confused.&lt;/P&gt;&lt;P&gt;It sounds like you are using javascript as your scripting language and getting an error somethign like:&lt;/P&gt;&lt;PRE style="color: #242729; border: 0px; font-size: 13px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="border: 0px; font-size: 13px;"&gt;javax.script.ScriptException: ReferenceError: "console" is not defined in &amp;lt;eval&amp;gt; at line number 22&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is because "console" (like document) is a browser concept and o ly works when running javascript in a browser.&lt;/P&gt;&lt;P&gt;To log output from a Javascript script task in Activiti you should use the "print" or "println" statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. println("Hello World");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 13:12:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/log-file-in-alfresco-activiti/m-p/32391#M13722</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-03-20T13:12:41Z</dc:date>
    </item>
  </channel>
</rss>

