05-02-2019 06:07 AM
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 ?
05-02-2019 10:57 PM
OK I got it working. The JSON should look like this
[
{
"name":"income",
"type":"integer" ,
"value":100
},
{
"name":"loanAmount",
"type":"integer" ,
"value":200
}
]
05-02-2019 10:57 PM
OK I got it working. The JSON should look like this
[
{
"name":"income",
"type":"integer" ,
"value":100
},
{
"name":"loanAmount",
"type":"integer" ,
"value":200
}
]
Explore our Alfresco products with the links below. Use labels to filter content by product module.