<?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 Issue with a text variable with multiple values set using REST in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/issue-with-a-text-variable-with-multiple-values-set-using-rest/m-p/9366#M4171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the following rest call to start a new process:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;POST&amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;/api/enterprise/process-instances&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;curl '&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.alfresco.com/localhost:9080/activiti-app/api/enterprise/process-instances" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:9080/activiti-app/api/enterprise/process-instances&lt;/A&gt;&lt;SPAN&gt;' -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQ=' -H 'Content-Type: application/json' -H 'Accept: application/json' --data-binary $'{"values": {"customId": "222471", "comment": "comment", &lt;/SPAN&gt;&lt;STRONG&gt;"financeGroup": "2015",&amp;nbsp;"assignees": ["2018", "2013"]&lt;/STRONG&gt;}, "processDefinitionId": "Review:34:57801","businessKey": null, "outcome":"Started", "name": "Review 222471"}' --compressed&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I can see that the process is started and two tasks are assigned, as expected, to the groups "2018", "2013".&lt;/P&gt;&lt;P&gt;The only problem is that the json returned by the API call does not have&amp;nbsp; a value for the property "assignees".&lt;/P&gt;&lt;P&gt;In the list of variables returned, I can see the following snippet:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;{"name":"assignees","type":"serializable","value":&lt;STRONG&gt;null&lt;/STRONG&gt;},&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;{"name":"financeGroup","type":"string","value":"2015"}&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;It seems that, because "assignees"&amp;nbsp;has multiple values, it is returned as null.&lt;/P&gt;&lt;P&gt;Is this expected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using "Alfresco Process Services" version 1.8.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Apr 2018 18:09:01 GMT</pubDate>
    <dc:creator>marco_altieri</dc:creator>
    <dc:date>2018-04-29T18:09:01Z</dc:date>
    <item>
      <title>Issue with a text variable with multiple values set using REST</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/issue-with-a-text-variable-with-multiple-values-set-using-rest/m-p/9366#M4171</link>
      <description>I am using the following rest call to start a new process&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;OST&amp;nbsp;/api/enterprise/process-instancescurl 'http://localhost:9080/activiti-app/api/enterprise/process-instances' -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQ=' -H 'Content-Type: application/json' -H 'Accept: application/json' --data-binary $'</description>
      <pubDate>Sun, 29 Apr 2018 18:09:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/issue-with-a-text-variable-with-multiple-values-set-using-rest/m-p/9366#M4171</guid>
      <dc:creator>marco_altieri</dc:creator>
      <dc:date>2018-04-29T18:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with a text variable with multiple values set using REST</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/issue-with-a-text-variable-with-multiple-values-set-using-rest/m-p/9367#M4172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think&lt;EM style="color: #727174; background-color: #ffffff; border: 0px;"&gt; Assignees&amp;nbsp;&lt;/EM&gt;will hold the user(s) to whom the task was assigned to. In your case, the task was with the group&amp;nbsp;which I think was the reason for it being null.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 09:58:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/issue-with-a-text-variable-with-multiple-values-set-using-rest/m-p/9367#M4172</guid>
      <dc:creator>hari</dc:creator>
      <dc:date>2018-04-30T09:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with a text variable with multiple values set using REST</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/issue-with-a-text-variable-with-multiple-values-set-using-rest/m-p/9368#M4173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What type is&amp;nbsp;&lt;STRONG style="color: #727174; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;"assignees": ["2018", "2013"] ? defined in your process variables?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #727174; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;I can see that is marked as serializable.. but you probably want to define it as an String[] or a list of strings.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 09:58:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/issue-with-a-text-variable-with-multiple-values-set-using-rest/m-p/9368#M4173</guid>
      <dc:creator>salaboy</dc:creator>
      <dc:date>2018-04-30T09:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with a text variable with multiple values set using REST</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/issue-with-a-text-variable-with-multiple-values-set-using-rest/m-p/9369#M4174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mauricio,&lt;/P&gt;&lt;P&gt;the type of the variable assignees was "text".&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works well if I pass only one value. It doesn't work only when I pass an array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 20:48:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/issue-with-a-text-variable-with-multiple-values-set-using-rest/m-p/9369#M4174</guid>
      <dc:creator>marco_altieri</dc:creator>
      <dc:date>2018-04-30T20:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with a text variable with multiple values set using REST</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/issue-with-a-text-variable-with-multiple-values-set-using-rest/m-p/9370#M4175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Serialized data is not returned by this API involving forms! If you set the property&amp;nbsp;&lt;SPAN class="" style="color: #d73a49; background-color: #ffffff;"&gt;&lt;EM style="color: #24292e; background-color: rgba(255, 255, 140, 0.5); font-weight: 600; margin: 0px -2px; padding: 2px;"&gt;rest&lt;/EM&gt;.&lt;EM style="color: #24292e; background-color: rgba(255, 255, 140, 0.5); font-weight: 600; margin: 0px -2px; padding: 2px;"&gt;variables&lt;/EM&gt;.&lt;EM style="color: #24292e; background-color: rgba(255, 255, 140, 0.5); font-weight: 600; margin: 0px -2px; padding: 2px;"&gt;allow&lt;/EM&gt;.&lt;EM style="color: #24292e; background-color: rgba(255, 255, 140, 0.5); font-weight: 600; margin: 0px -2px; padding: 2px;"&gt;serializable&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;=true, you can use the core engine API and get the link to the variable in response. eg:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Request&lt;BR /&gt;&lt;BR /&gt;curl 'http://localhost:8080/activiti-app/api/runtime/process-instances?tenantId=tenant_1' -H 'Authorization: Basic YWRtaW5AYXBwLmFjdGl2aXRpLmNvbTphZG1pbg==' -H 'Content-Type: application/json' -H 'Accept: application/json' --data-binary $'{"variables": [{ "name": "assignees", "value": ["2018", "2013"]}],"processDefinitionId":"serialize:2:132549", "returnVariables":true}' --compressed&lt;BR /&gt;&lt;BR /&gt;Response&lt;BR /&gt;&lt;BR /&gt;{"id":"132616","url":"http://localhost:8080/activiti-app/api/runtime/process-instances/132616","businessKey":null,"suspended":false,"ended":false,"processDefinitionId":"serialize:2:132549","processDefinitionUrl":"http://localhost:8080/activiti-app/api/repository/process-definitions/serialize:2:132549","processDefinitionKey":"serialize","activityId":"sid-11AC2671-8E15-45AF-9103-E6EC6D7F6865","variables":[{"name":"initiator","type":"string","value":"1","scope":"local"},{"name":"assignees","type":"serializable","value":null,"valueUrl":"http://localhost:8080/activiti-app/api/runtime/process-instances/132616/variables/assignees/data","scope":"local"}],"tenantId":"tenant_1","name":null,"completed":false}‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2018 18:23:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/issue-with-a-text-variable-with-multiple-values-set-using-rest/m-p/9370#M4175</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2018-05-01T18:23:25Z</dc:date>
    </item>
  </channel>
</rss>

