<?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: (Javascript) business rules for bulk uploads in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/javascript-business-rules-for-bulk-uploads/m-p/126460#M88966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;As an addendum to this, is it possible to create a versioned update of a binary file via javascript? Trying to copy over it throws an exception and setting the document.content old file from that of the new file seems dodgy as it uses a character (rather than binary) stream.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Correct yes it was designed for just dealing with text based content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have added a new API for this, but it only made it into the 2.1Enterprise codeline - it will be merged over to the HEAD code stream shortly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API#ScriptContent_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API#ScriptContent_API&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;see the write() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2007 15:11:29 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2007-09-04T15:11:29Z</dc:date>
    <item>
      <title>(Javascript) business rules for bulk uploads</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-business-rules-for-bulk-uploads/m-p/126458#M88964</link>
      <description>HiI'm trying to implement a dropbox system using javscripts triggered by business rules. (It seems a lot quicker and easier to manage that way than to create a rule for each action). The main problem that I am facing at the moment is with bulk uploads (generally via CIFS). when faced with a director</description>
      <pubDate>Tue, 28 Aug 2007 12:05:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-business-rules-for-bulk-uploads/m-p/126458#M88964</guid>
      <dc:creator>leifuss</dc:creator>
      <dc:date>2007-08-28T12:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: (Javascript) business rules for bulk uploads</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-business-rules-for-bulk-uploads/m-p/126459#M88965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As an addendum to this, is it possible to create a versioned update of a binary file via javascript? Trying to copy over it throws an exception and setting the document.content old file from that of the new file seems dodgy as it uses a character (rather than binary) stream.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;L.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 13:32:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-business-rules-for-bulk-uploads/m-p/126459#M88965</guid>
      <dc:creator>leifuss</dc:creator>
      <dc:date>2007-08-28T13:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: (Javascript) business rules for bulk uploads</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-business-rules-for-bulk-uploads/m-p/126460#M88966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;As an addendum to this, is it possible to create a versioned update of a binary file via javascript? Trying to copy over it throws an exception and setting the document.content old file from that of the new file seems dodgy as it uses a character (rather than binary) stream.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Correct yes it was designed for just dealing with text based content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have added a new API for this, but it only made it into the 2.1Enterprise codeline - it will be merged over to the HEAD code stream shortly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API#ScriptContent_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API#ScriptContent_API&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;see the write() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 15:11:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-business-rules-for-bulk-uploads/m-p/126460#M88966</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-09-04T15:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: (Javascript) business rules for bulk uploads</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-business-rules-for-bulk-uploads/m-p/126461#M88967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great - thanks &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When does 2.1 enterprise become available? And (as if that weren't helpful enough!) any thoughts on the directory import problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;L.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 15:24:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-business-rules-for-bulk-uploads/m-p/126461#M88967</guid>
      <dc:creator>leifuss</dc:creator>
      <dc:date>2007-09-04T15:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: (Javascript) business rules for bulk uploads</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-business-rules-for-bulk-uploads/m-p/126462#M88968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By the end of the week in theory, but i'm not signing anything &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the problem you are seeing with the empty array is a known issue with CIFS. Due to the way the CIFS protocol works, the creation of each item such as a folder or a file is a separate transaction. So at the point at which the rule is fired for the parent folder creation, the children have not yet actually been created - so the zero length array is correct. I suggest you try a rule that fires when each document is added and process each item in turn. It's annoying but it's amazing something as crazy as CIFS works in Java at all &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 15:38:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-business-rules-for-bulk-uploads/m-p/126462#M88968</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-09-04T15:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: (Javascript) business rules for bulk uploads</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-business-rules-for-bulk-uploads/m-p/126463#M88969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll keep an eye out for 2.1E and in the meantime I'll try a polling approach with the directories and post back to the forum with how I get on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;L.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 15:50:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-business-rules-for-bulk-uploads/m-p/126463#M88969</guid>
      <dc:creator>leifuss</dc:creator>
      <dc:date>2007-09-04T15:50:24Z</dc:date>
    </item>
  </channel>
</rss>

