<?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 Move document in task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/move-document-in-task/m-p/258085#M211215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in my custom workflow, after the approvation, I need to move the document in a specified folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a document in a site.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- User A and user B are "Collaborator" of the site.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- User A is owner of the document, start the approvation workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- User B is the approver, when document is approved/rejected by B it should be moved in a folder (via javascript). This is not possible (Exception) because B have not right permissions to move document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;org.alfresco.scripts.ScriptException: 08070088 Failed to execute supplied scrip: Access Denied. You do not have appropriate permissions to perform this operation &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;But I need to have that B is a collaborator. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to set only the move action for the owner of the document? (in this manner the document will move!).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or other solution..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Sep 2012 08:36:38 GMT</pubDate>
    <dc:creator>agz</dc:creator>
    <dc:date>2012-09-07T08:36:38Z</dc:date>
    <item>
      <title>Move document in task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/move-document-in-task/m-p/258085#M211215</link>
      <description>Hi all,in my custom workflow, after the approvation, I need to move the document in a specified folder.I have a document in a site.- User A and user B are "Collaborator" of the site.- User A is owner of the document, start the approvation workflow.- User B is the approver, when document is approved/</description>
      <pubDate>Fri, 07 Sep 2012 08:36:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/move-document-in-task/m-p/258085#M211215</guid>
      <dc:creator>agz</dc:creator>
      <dc:date>2012-09-07T08:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Move document in task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/move-document-in-task/m-p/258086#M211216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you need to specify the runAs context of the move action in order to have it run as a different user. In JBPM, the AlfrescoJavaScript class allows the "runas" property to specify the user in whose permission context the action should run. In Activiti you have either ScriptTaskListener or ScriptExecutionListener (depending on the context you attach a script to), which support a "runAs" property (note the case) to do the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 08:45:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/move-document-in-task/m-p/258086#M211216</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-09-07T08:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Move document in task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/move-document-in-task/m-p/258087#M211217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I had not seen the "Run as".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I set "admin" and all works!&amp;nbsp; :wink: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 09:55:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/move-document-in-task/m-p/258087#M211217</guid>
      <dc:creator>agz</dc:creator>
      <dc:date>2012-09-07T09:55:48Z</dc:date>
    </item>
  </channel>
</rss>

