Hi all.
When I send a list of variables only the last one is updated.
PUT
https://10.64.9.134:9445/bpmn/runtime/process-instances/5001/variables
[
{
"name":"income",
"type":"integer" ,
"value":20000 ,
"name":"loanAmount",
"type":"integer" ,
"value":500
}
]
Then the response will be
{
"restVariables": [
{
"valueUrl": null,
"variableScope": "LOCAL",
"scope": "local",
"name": "loanAmount",
"value": 500,
"type": "integer"
}
]
}
Also when I create a instance and send the list of variables only the last one is set. What am I doing wrong with the list ?
How do I set a list of more than one ?
Solved! Go to Solution.
OK I got it working. The JSON should look like this
[
{
"name":"income",
"type":"integer" ,
"value":100
},
{
"name":"loanAmount",
"type":"integer" ,
"value":200
}
]
OK I got it working. The JSON should look like this
[
{
"name":"income",
"type":"integer" ,
"value":100
},
{
"name":"loanAmount",
"type":"integer" ,
"value":200
}
]
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.