AnsweredAssumed Answered

Issue with a text variable with multiple values set using REST

Question asked by marco.altieri on Apr 29, 2018
Latest reply on May 1, 2018 by cjose

I am using the following rest call to start a new process:


POST /api/enterprise/process-instances
curl 'http://localhost:9080/activiti-app/api/enterprise/process-instances' -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQ=' -H 'Content-Type: application/json' -H 'Accept: application/json' --data-binary $'{"values": {"customId": "222471", "comment": "comment", "financeGroup": "2015", "assignees": ["2018", "2013"]}, "processDefinitionId": "Review:34:57801","businessKey": null, "outcome":"Started", "name": "Review 222471"}' --compressed


 I can see that the process is started and two tasks are assigned, as expected, to the groups "2018", "2013".

The only problem is that the json returned by the API call does not have  a value for the property "assignees".

In the list of variables returned, I can see the following snippet:




It seems that, because "assignees" has multiple values, it is returned as null.

Is this expected?


I am using "Alfresco Process Services" version 1.8.1.