<?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: Run Activiti Script As System in Alfresco 5.0 in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/run-activiti-script-as-system-in-alfresco-5-0/m-p/304046#M257176</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;as far as I can see, no user called "System" ever existed in any of my Repositories - no matter the Alfresco version (currently checked a 4.2.4). I must admit, I have never used the "runAs" configuration on AlfrescoScriptTask - whenever I want to execute something as the System user, I use a Java delegate and do a proper AuthenticationUtil.runAsSystem().&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So far, I can see no change concerning the "System" user behaviour in Alfresco 5.0&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>Wed, 25 Mar 2015 17:41:29 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2015-03-25T17:41:29Z</dc:date>
    <item>
      <title>Run Activiti Script As System in Alfresco 5.0</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/run-activiti-script-as-system-in-alfresco-5-0/m-p/304045#M257175</link>
      <description>Hi,I wanted to run a JS script in an Activiti workflow as the System user.I did that many times in v4.2, setting "System" in the "runas" field of an AlfrescoScriptTask, but when running this in v5.0 (Enterprise) the following error shows up : "runas user 'System' does not exist".It seems the way the</description>
      <pubDate>Tue, 24 Mar 2015 09:58:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/run-activiti-script-as-system-in-alfresco-5-0/m-p/304045#M257175</guid>
      <dc:creator>tonyrivet</dc:creator>
      <dc:date>2015-03-24T09:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Run Activiti Script As System in Alfresco 5.0</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/run-activiti-script-as-system-in-alfresco-5-0/m-p/304046#M257176</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;as far as I can see, no user called "System" ever existed in any of my Repositories - no matter the Alfresco version (currently checked a 4.2.4). I must admit, I have never used the "runAs" configuration on AlfrescoScriptTask - whenever I want to execute something as the System user, I use a Java delegate and do a proper AuthenticationUtil.runAsSystem().&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So far, I can see no change concerning the "System" user behaviour in Alfresco 5.0&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>Wed, 25 Mar 2015 17:41:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/run-activiti-script-as-system-in-alfresco-5-0/m-p/304046#M257176</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2015-03-25T17:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Run Activiti Script As System in Alfresco 5.0</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/run-activiti-script-as-system-in-alfresco-5-0/m-p/304047#M257177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, thanks for your response !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked on a native 4.2 environment and you're right, the System user does not exist in the people container neither.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It existed on my "customized" 4.2 environment, but must have been created automatically I don't really know how…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So basically, I assume that it is not possible to run a ScriptTask as System ??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree I could use Java Delegates (and I do for some complex tasks) but my process contains many simple pieces of logic and I find it a bit heavy to create a dedicated Delegate for each.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I will customize the AlfrescoScriptTask and override the executeScript() method to handle the System user properly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 14:00:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/run-activiti-script-as-system-in-alfresco-5-0/m-p/304047#M257177</guid>
      <dc:creator>tonyrivet</dc:creator>
      <dc:date>2015-03-26T14:00:20Z</dc:date>
    </item>
  </channel>
</rss>

