<?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 What user executes Activity Service classes and Listeners in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/what-user-executes-activity-service-classes-and-listeners/m-p/130070#M91396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am seeing behavior where it seems that the service tasks classes and user task listeners are being executed by users that do not have enough previlege.&amp;nbsp; Is there a way to control which user executes the service task classes and listeners?&amp;nbsp; I have a need for an admin user to run these not the participants in the workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any guidance is greatly appreciated.&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;- Shannon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2013 15:40:22 GMT</pubDate>
    <dc:creator>srobinson</dc:creator>
    <dc:date>2013-02-05T15:40:22Z</dc:date>
    <item>
      <title>What user executes Activity Service classes and Listeners</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-user-executes-activity-service-classes-and-listeners/m-p/130070#M91396</link>
      <description>I am seeing behavior where it seems that the service tasks classes and user task listeners are being executed by users that do not have enough previlege.&amp;nbsp; Is there a way to control which user executes the service task classes and listeners?&amp;nbsp; I have a need for an admin user to run these not the parti</description>
      <pubDate>Tue, 05 Feb 2013 15:40:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-user-executes-activity-service-classes-and-listeners/m-p/130070#M91396</guid>
      <dc:creator>srobinson</dc:creator>
      <dc:date>2013-02-05T15:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: What user executes Activity Service classes and Listeners</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-user-executes-activity-service-classes-and-listeners/m-p/130071#M91397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What do you mean by "what user runs"? That's completely up to you, what user is used to run certain steps of the workflow. The user that is set using Authentication.setAuthenticatedUserId(), will be used when needed. However, there is no place where activiti "enforces" a certain user to be uses for certain operations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So to answer your question: the user that was set at the time the API-call is called that causes the service-task to be executed, is the one used in Authentication. In case of an async activity (or timer), there is by default NO user set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're using Alfresco, this model is slightly different, but I presume you're talking about activiti-standalone?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 16:00:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-user-executes-activity-service-classes-and-listeners/m-p/130071#M91397</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-02-05T16:00:18Z</dc:date>
    </item>
  </channel>
</rss>

