<?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: unique problem with webscript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/unique-problem-with-webscript/m-p/239271#M192401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you configured your rule action, did you set the filter to "All items" or items of a specific mime type? Maybe you inadvertently chose a specific mime type and that's keeping your rule from firing for images.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that's not it, make sure your rule is firing. Add a logger.log("Made it this far"); kind of statement to your server-side JavaScript. Then edit log4j.properties to make sure you've got a logger enabled for server side javascript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;log4j.logger.org.alfresco.repo.jscript=debug&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Also, if you'd like to step through your JavaScript when it fires, you can turn on the Rhino debugger:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=on&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Now add your image to the folder and watch the log/debugger to see what happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Aug 2009 20:26:53 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2009-08-25T20:26:53Z</dc:date>
    <item>
      <title>unique problem with webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unique-problem-with-webscript/m-p/239270#M192400</link>
      <description>HI all,i have created a inbound rule which "executes a script" when items are imported to a space, the script file contains the following:document.name=document.properties["sys:node-dbid"] + "_" + document.name;now what happens is whenever i import a ".txt" file in to the space, "db-id" is appended</description>
      <pubDate>Tue, 25 Aug 2009 15:04:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unique-problem-with-webscript/m-p/239270#M192400</guid>
      <dc:creator>kamal_ravichand</dc:creator>
      <dc:date>2009-08-25T15:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: unique problem with webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unique-problem-with-webscript/m-p/239271#M192401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you configured your rule action, did you set the filter to "All items" or items of a specific mime type? Maybe you inadvertently chose a specific mime type and that's keeping your rule from firing for images.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that's not it, make sure your rule is firing. Add a logger.log("Made it this far"); kind of statement to your server-side JavaScript. Then edit log4j.properties to make sure you've got a logger enabled for server side javascript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;log4j.logger.org.alfresco.repo.jscript=debug&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Also, if you'd like to step through your JavaScript when it fires, you can turn on the Rhino debugger:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=on&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Now add your image to the folder and watch the log/debugger to see what happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 20:26:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unique-problem-with-webscript/m-p/239271#M192401</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2009-08-25T20:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: unique problem with webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unique-problem-with-webscript/m-p/239272#M192402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;HI jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the reply&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have mentioned "All items" already but its not working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i followed your instructions, the java script is not triggering when i import jpeg file,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and please &lt;/SPAN&gt;&lt;STRONG&gt;note:&lt;/STRONG&gt;&lt;SPAN&gt; the sample "backup.js" present in Companyhome/Datadictionary/scripts space also does not trigger for jpeg files but it triggers when i import "txt" files, meaning backup folder and backup of jpeg file is not done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;one more query…does jpeg do not fall under "document" type/category ? since the script is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;document.name=document.properties["sys:node-dbid"] + "_" + document.name;&amp;nbsp;&amp;nbsp; and that's the reason the script is not triggering??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;kamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 11:02:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unique-problem-with-webscript/m-p/239272#M192402</guid>
      <dc:creator>kamal_ravichand</dc:creator>
      <dc:date>2009-08-26T11:02:30Z</dc:date>
    </item>
  </channel>
</rss>

