<?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 Task Event: User is null in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/task-event-user-is-null/m-p/106853#M74774</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem, which should be simple to solve, but i can't find the method to call to solve this problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is, that every Task Event (org.activiti.engine.task.Event) returnes null by calling Event.getUserId();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I take a look into the database I see that the database table ACT_HI_COMMENT has null as value for the column USER_ID_ for every row.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I generate these TaskEvents programmatically by calling (for example)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;processEngine.getTaskService().addComment(task.getId(), &amp;nbsp;&amp;nbsp;&amp;nbsp;null, commentMessage);&lt;BR /&gt;&lt;BR /&gt;processEngine.getTaskService().addUserIdentityLink(task.getId(), user.getId(), IDENTITY_LINK_OBSERVER);&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess there is a simple method that I must call to solve this problem, something like processEngine.setCurrentUser(authenticatedUser.getId());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Sep 2012 10:17:38 GMT</pubDate>
    <dc:creator>qwe</dc:creator>
    <dc:date>2012-09-02T10:17:38Z</dc:date>
    <item>
      <title>Task Event: User is null</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-event-user-is-null/m-p/106853#M74774</link>
      <description>Hi,I have a problem, which should be simple to solve, but i can't find the method to call to solve this problem:My problem is, that every Task Event (org.activiti.engine.task.Event) returnes null by calling Event.getUserId();If I take a look into the database I see that the database table ACT_HI_COM</description>
      <pubDate>Sun, 02 Sep 2012 10:17:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-event-user-is-null/m-p/106853#M74774</guid>
      <dc:creator>qwe</dc:creator>
      <dc:date>2012-09-02T10:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Task Event: User is null</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-event-user-is-null/m-p/106854#M74775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi qwe,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;processEngine.getIdentityService().setAuthenticatedUserId(…);&lt;BR /&gt;processEngine.getTaskService().addComment(task.getId(), null, commentMessage);&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 06:01:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-event-user-is-null/m-p/106854#M74775</guid>
      <dc:creator>naag</dc:creator>
      <dc:date>2012-09-04T06:01:47Z</dc:date>
    </item>
  </channel>
</rss>

