<?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 Activiti 5.16.3 in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-16-3/m-p/187873#M141003</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;BR /&gt;&lt;SPAN&gt;I think I spot a bug in Activiti Engine (still present in the latest version to date, 5.16.3).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The javadoc says "resolveTask" can only be done for task whose delegation state is pending. Here the&amp;nbsp; excerpt: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"void resolveTask(String taskId)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Marks that the assignee is done with this task and that it can be send back to the owner. Can only be called when this task is DelegationState.PENDING delegation. After this method returns, the delegationState is set to DelegationState.RESOLVED."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, when I tried this (using REST API) on a task whose delegationState is null, it returned, without error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;url: &lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-rest/service/runtime/tasks/2509" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/runtime/tasks/2509&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;body: {"action" : "resolve", "variables": [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{"name": "varA", "value": "value_A", "scope": "local", "type": "string"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;]}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;–&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After successful completion of that REST call, I invoked this to check: &lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-rest/service/runtime/tasks?processInstanceId=2505&amp;amp;includeProcessVariables=true" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/runtime/tasks?processInstanceId=2505&amp;amp;includeProcessVariables=true&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I could see the delegationStatus of the task is now set to "resolved" (plus, the "assignee" field is set to the same value as the owner. Originally it was null).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on the javadoc, I was expecting a different behaviour (I was expecting that the "resolve" action would fail).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it a bug?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Raka&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2014 22:25:33 GMT</pubDate>
    <dc:creator>raka</dc:creator>
    <dc:date>2014-10-07T22:25:33Z</dc:date>
    <item>
      <title>Activiti 5.16.3</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-16-3/m-p/187873#M141003</link>
      <description>Hi, I think I spot a bug in Activiti Engine (still present in the latest version to date, 5.16.3).The javadoc says "resolveTask" can only be done for task whose delegation state is pending. Here the&amp;nbsp; excerpt: "void resolveTask(String taskId)Marks that the assignee is done with this task and that it</description>
      <pubDate>Tue, 07 Oct 2014 22:25:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-16-3/m-p/187873#M141003</guid>
      <dc:creator>raka</dc:creator>
      <dc:date>2014-10-07T22:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 5.16.3</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-16-3/m-p/187874#M141004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry I forgot to put the correct title, and I couldn't find a way to edit the subject after the post.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 22:27:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-16-3/m-p/187874#M141004</guid>
      <dc:creator>raka</dc:creator>
      <dc:date>2014-10-07T22:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 5.16.3</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-16-3/m-p/187875#M141005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Raka,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes that's not correct. Right now it's not checked if the delegation state is actually pending.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We should do that. Could you raise a JIRA issue for this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 09:20:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-16-3/m-p/187875#M141005</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-10-10T09:20:27Z</dc:date>
    </item>
  </channel>
</rss>

