<?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 Complete a task with enum variable in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/complete-a-task-with-enum-variable/m-p/233659#M186789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I use rest api to complete a task. one of the task variable is enum type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i send the json of complete task i send this:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"{\"action\":\"complete\",\"variables\":[{\"name\":\"sport\",\"value\":\"swim\",\"type\":\"enum\"}]}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is not good, activiti throws exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bad request (400) - Variable 'sport' has unsupported type enum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i send it as type=string (instead of type=enum, its ok, but then the type saved will be string - i check the variables of the task after its completed (via REST API get task variables)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How should i send the json ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is wierd ? When i run a get form parameters ("form/form-data?taskId=XXXX") i get the following&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"{\"formKey\":null,\"deploymentId\":\"7601\",\"processDefinitionId\":null,\"processDefinitionUrl\":null,\"taskId\":\"7618\",\"taskUrl\":\"&lt;/SPAN&gt;&lt;A href="http://localhost:1248/activiti-rest/service/runtime/tasks/7618\%22,\%22formProperties\" rel="nofollow noopener noreferrer"&gt;http://localhost:1248/activiti-rest/service/runtime/tasks/7618\',\'formProperties\&lt;/A&gt;&lt;SPAN&gt;":[{\"id\":\"sport\",\"name\":\"sport\",\"type\":\"enum\",\"value\":null,\"readable\":true,\"writable\":true,\"required\":true,\"datePattern\":null,\"enumValues\":[{\"id\":\"swim\",\"name\":\"swim\"},{\"id\":\"run\",\"name\":\"run\"},{\"id\":\"walk\",\"name\":\"walk\"}]}]}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jan 2016 08:27:09 GMT</pubDate>
    <dc:creator>ilansch</dc:creator>
    <dc:date>2016-01-18T08:27:09Z</dc:date>
    <item>
      <title>Complete a task with enum variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/complete-a-task-with-enum-variable/m-p/233659#M186789</link>
      <description>Hi, I use rest api to complete a task. one of the task variable is enum type.When i send the json of complete task i send this:&amp;nbsp; "{\"action\":\"complete\",\"variables\":[{\"name\":\"sport\",\"value\":\"swim\",\"type\":\"enum\"}]}"this is not good, activiti throws exception:Bad request (400) - Variab</description>
      <pubDate>Mon, 18 Jan 2016 08:27:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/complete-a-task-with-enum-variable/m-p/233659#M186789</guid>
      <dc:creator>ilansch</dc:creator>
      <dc:date>2016-01-18T08:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Complete a task with enum variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/complete-a-task-with-enum-variable/m-p/233660#M186790</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;these are the point in the documentation where you should take a look :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.activiti.org/userguide/#_rest_api" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/#_rest_api&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.activiti.org/userguide/#restVariables" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/#restVariables&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;enum is not supported for this rest call , you should use string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 10:37:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/complete-a-task-with-enum-variable/m-p/233660#M186790</guid>
      <dc:creator>actarus16</dc:creator>
      <dc:date>2016-01-18T10:37:17Z</dc:date>
    </item>
  </channel>
</rss>

