<?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: Doc control and restricting permissions in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/doc-control-and-restricting-permissions/m-p/248498#M201628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To check ou a document during a workflow, a java script in the processdefintion must be provided.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The API is documented here: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/3.4_JavaScript_API#Check_in.2FCheck_out_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.4_JavaScript_API#Check_in.2FCheck_out_API&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;The line would be roughly like bpm_workflow_package.item&lt;/SPAN&gt;&lt;EM&gt;.checkout() where i is the appropriate file # in the workflow package.&lt;BR /&gt;A user could as well manually check out a file during a workflow via the my task interface of the JSP (non-Share) client.&lt;BR /&gt;But the checked out working copy has to be put in the right space via the user that has to provide that folder during the checkout process.&lt;BR /&gt;&lt;BR /&gt;With a javascript, you can redirect it automatically to where you want:&lt;BR /&gt;ScriptNode checkout(ScriptNode destination) &lt;BR /&gt;Performs a checkout of the node to the specified destination, returning the resulting working copy node.&lt;BR /&gt;&lt;BR /&gt;To be able to do this, the script may be required to run as admin, because the user that initiates the workflow&lt;BR /&gt;should, as you stated, not be allowed to edit a document. A user without writing rights on a space therefore cannot write a working copy,&lt;BR /&gt;but may be able to do so in another folder, the one provided in the checkout script. If needed, here's how you run a script as admin.&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/WorkflowAdministration#Run_As" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/WorkflowAdministration#Run_As&lt;/A&gt;&lt;/EM&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jan 2011 14:30:40 GMT</pubDate>
    <dc:creator>_sax</dc:creator>
    <dc:date>2011-01-19T14:30:40Z</dc:date>
    <item>
      <title>Doc control and restricting permissions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/doc-control-and-restricting-permissions/m-p/248496#M201626</link>
      <description>Dear list,I'm trialling Alfresco for document control and I like it. I'm particularly impressed with the "share" interface, but it's not quite restrictive enough out-of-the-box. I've set up a folder in the default repository (this could be done in a site if necessary) for active (or published) docum</description>
      <pubDate>Mon, 17 Jan 2011 22:01:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/doc-control-and-restricting-permissions/m-p/248496#M201626</guid>
      <dc:creator>ph73nt</dc:creator>
      <dc:date>2011-01-17T22:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Doc control and restricting permissions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/doc-control-and-restricting-permissions/m-p/248497#M201627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you can write the custom java script to remove the buttons.. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; how can check-out achieve in work flow?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jan 2011 08:03:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/doc-control-and-restricting-permissions/m-p/248497#M201627</guid>
      <dc:creator>muralie39</dc:creator>
      <dc:date>2011-01-19T08:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Doc control and restricting permissions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/doc-control-and-restricting-permissions/m-p/248498#M201628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To check ou a document during a workflow, a java script in the processdefintion must be provided.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The API is documented here: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/3.4_JavaScript_API#Check_in.2FCheck_out_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.4_JavaScript_API#Check_in.2FCheck_out_API&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;The line would be roughly like bpm_workflow_package.item&lt;/SPAN&gt;&lt;EM&gt;.checkout() where i is the appropriate file # in the workflow package.&lt;BR /&gt;A user could as well manually check out a file during a workflow via the my task interface of the JSP (non-Share) client.&lt;BR /&gt;But the checked out working copy has to be put in the right space via the user that has to provide that folder during the checkout process.&lt;BR /&gt;&lt;BR /&gt;With a javascript, you can redirect it automatically to where you want:&lt;BR /&gt;ScriptNode checkout(ScriptNode destination) &lt;BR /&gt;Performs a checkout of the node to the specified destination, returning the resulting working copy node.&lt;BR /&gt;&lt;BR /&gt;To be able to do this, the script may be required to run as admin, because the user that initiates the workflow&lt;BR /&gt;should, as you stated, not be allowed to edit a document. A user without writing rights on a space therefore cannot write a working copy,&lt;BR /&gt;but may be able to do so in another folder, the one provided in the checkout script. If needed, here's how you run a script as admin.&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/WorkflowAdministration#Run_As" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/WorkflowAdministration#Run_As&lt;/A&gt;&lt;/EM&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jan 2011 14:30:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/doc-control-and-restricting-permissions/m-p/248498#M201628</guid>
      <dc:creator>_sax</dc:creator>
      <dc:date>2011-01-19T14:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Doc control and restricting permissions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/doc-control-and-restricting-permissions/m-p/248499#M201629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's useful info, thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 09:13:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/doc-control-and-restricting-permissions/m-p/248499#M201629</guid>
      <dc:creator>ph73nt</dc:creator>
      <dc:date>2011-01-20T09:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Doc control and restricting permissions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/doc-control-and-restricting-permissions/m-p/248500#M201630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmmm… having trouble checking out documents within the workflow. Everytime I try to reference a document with anything other than bpm_package.children.length I get an error. I've detailed this in a new thread (&lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/en/viewtopic.php?f=34&amp;amp;t=37009" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/en/viewtopic.php?f=34&amp;amp;t=37009&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheeres, Neil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 09:04:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/doc-control-and-restricting-permissions/m-p/248500#M201630</guid>
      <dc:creator>ph73nt</dc:creator>
      <dc:date>2011-01-27T09:04:43Z</dc:date>
    </item>
  </channel>
</rss>

