<?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: callActivity not setting the start user in second execution in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/callactivity-not-setting-the-start-user-in-second-execution/m-p/242701#M195831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; I've tried to debug the issue across Activiti code and saw that the current authenticated user is saved in a ThreadLocal variable. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How are you running this? Via Explorer? Unit test?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jun 2016 09:38:13 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2016-06-22T09:38:13Z</dc:date>
    <item>
      <title>callActivity not setting the start user in second execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/callactivity-not-setting-the-start-user-in-second-execution/m-p/242698#M195828</link>
      <description>I'm using Activiti 5.19 embeded in Alfresco.I'm doing some test to check if calling activities dynamically could solve one of our use cases.So I defined a workflow that simply takes a process name from a config variable and calls that activity. The activity itself executes a little script task and t</description>
      <pubDate>Mon, 13 Jun 2016 16:39:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/callactivity-not-setting-the-start-user-in-second-execution/m-p/242698#M195828</guid>
      <dc:creator>iblanco</dc:creator>
      <dc:date>2016-06-13T16:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: callActivity not setting the start user in second execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/callactivity-not-setting-the-start-user-in-second-execution/m-p/242699#M195829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What do you mean with 'second time'? I only see one call activity? Or does it loop back (That's what I assume)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 12:56:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/callactivity-not-setting-the-start-user-in-second-execution/m-p/242699#M195829</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-06-20T12:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: callActivity not setting the start user in second execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/callactivity-not-setting-the-start-user-in-second-execution/m-p/242700#M195830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joram:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, it does loop back after executing each activity. The called activity is just a process with a single user task so whenever the user task is completed the parent process is resumed and calls the activity again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I execute my process as user "admin". When the activity is called for the first time the called activity has the start_user_id set as "admin" as expected (both processes, the "parent" process and the called process, both have the user set correctly). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I end the user task, once more with user "admin", the execution of the parent process resumes as expected and the callActivity is called once more but this time the child process has no "start_user_id" set at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to me like if "resuming the parent" would cause the loss of the authentication. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried to debug the issue across Activiti code and saw that the current authenticated user is saved in a ThreadLocal variable. Maybe there is some kind of thread when resuming the execution or something like that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 13:10:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/callactivity-not-setting-the-start-user-in-second-execution/m-p/242700#M195830</guid>
      <dc:creator>iblanco</dc:creator>
      <dc:date>2016-06-20T13:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: callActivity not setting the start user in second execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/callactivity-not-setting-the-start-user-in-second-execution/m-p/242701#M195831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; I've tried to debug the issue across Activiti code and saw that the current authenticated user is saved in a ThreadLocal variable. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How are you running this? Via Explorer? Unit test?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 09:38:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/callactivity-not-setting-the-start-user-in-second-execution/m-p/242701#M195831</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-06-22T09:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: callActivity not setting the start user in second execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/callactivity-not-setting-the-start-user-in-second-execution/m-p/242702#M195832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm deploying and running it in Alfresco 5.1g.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 09:39:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/callactivity-not-setting-the-start-user-in-second-execution/m-p/242702#M195832</guid>
      <dc:creator>iblanco</dc:creator>
      <dc:date>2016-06-22T09:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: callActivity not setting the start user in second execution</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/callactivity-not-setting-the-start-user-in-second-execution/m-p/242703#M195833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've added a unit test for it here, but I cannot reproduce it on the Activiti engine: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/commit/a6c8fda1e64497f50e76bb1ada77044d4a77cdaf" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/commit/a6c8fda1e64497f50e76bb1ada77044d4a77cdaf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would be interesting to see what the differences are between this and your case.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 15:58:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/callactivity-not-setting-the-start-user-in-second-execution/m-p/242703#M195833</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-07-01T15:58:39Z</dc:date>
    </item>
  </channel>
</rss>

