<?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 How to assign user task to a user from API? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-assign-user-task-to-a-user-from-api/m-p/48368#M27653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to improve the task operations rest api with another operation that allows to reassign task to other user. I have used the followed code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ActivitiUtil.getTaskService().setAssignee(taskId, userId);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But it doesn't work as well as i would like it. Because it makes an entry to ACT_HI_COMMENT table but column USER_ID_ is null, and that makes activiti-explorer crash with a NULL Pointer Exception when it tries to compose the task lists.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that activiti-web-explorer uses the same instruction, but it records the USER_ID logged in the table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I doing something wrong? Appreciate your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Log after executing setAssignee operation within activiti-explorer-webapp&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;FINE: ==&amp;gt;&amp;nbsp; Executing: insert into ACT_HI_COMMENT (ID_, TYPE_, TIME_, USER_ID_, TASK_ID_, PROC_INST_ID_, ACTION_, MESSAGE_, FULL_MSG_) values ( ?, ?, ?, ?, ?, ?, ?, ?, ? ) &lt;BR /&gt;Oct 6, 2011 2:25:08 PM org.apache.ibatis.logging.commons.JakartaCommonsLoggingImpl debug&lt;BR /&gt;FINE: ==&amp;gt; Parameters: 2905(String), event(String), 2011-10-06 14:25:08.706(Timestamp), kermit(String), 2904(String), null, AddUserLink(String), gonzo_|_assignee(String), null&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Log after executing setAssignee operation within activiti-rest2-webapp&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;FINE: ==&amp;gt;&amp;nbsp; Executing: insert into ACT_HI_COMMENT (ID_, TYPE_, TIME_, USER_ID_, TASK_ID_, PROC_INST_ID_, ACTION_, MESSAGE_, FULL_MSG_) values ( ?, ?, ?, ?, ?, ?, ?, ?, ? ) &lt;BR /&gt;Oct 6, 2011 2:22:02 PM org.apache.ibatis.logging.commons.JakartaCommonsLoggingImpl debug&lt;BR /&gt;FINE: ==&amp;gt; Parameters: 3001(String), event(String), 2011-10-06 14:22:02.228(Timestamp), null, 804(String), null, AddUserLink(String), fozzie_|_assignee(String), null&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2011 12:44:21 GMT</pubDate>
    <dc:creator>asanchez</dc:creator>
    <dc:date>2011-10-06T12:44:21Z</dc:date>
    <item>
      <title>How to assign user task to a user from API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-assign-user-task-to-a-user-from-api/m-p/48368#M27653</link>
      <description>I am trying to improve the task operations rest api with another operation that allows to reassign task to other user. I have used the followed code:ActivitiUtil.getTaskService().setAssignee(taskId, userId);‍. But it doesn't work as well as i would like it. Because it makes an entry to ACT_HI_COMMEN</description>
      <pubDate>Thu, 06 Oct 2011 12:44:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-assign-user-task-to-a-user-from-api/m-p/48368#M27653</guid>
      <dc:creator>asanchez</dc:creator>
      <dc:date>2011-10-06T12:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign user task to a user from API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-assign-user-task-to-a-user-from-api/m-p/48369#M27654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The UserID field is filled in based on the authenticated user ID. Looks like the new version of the webapp doesn't set this before each request to the engine, I'll create a JIRA-issue for this. &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-954" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-954&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you're in the sources already, you can implement a workaround, I suspect in the&amp;nbsp; public String authenticate(Request request, Response response) { of the ActivitiRestApplication&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 08:49:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-assign-user-task-to-a-user-from-api/m-p/48369#M27654</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-10-10T08:49:52Z</dc:date>
    </item>
  </channel>
</rss>

