How to get just names of process variables based on process defination id using rest api

Hi,
Can any body help me on how to get names of process variables based on process definition id using rest api.
Our application has several processes and we need to populate UI with process variable names as labels…
based on process definition id.

Any help is greatly appreciated…

Thanks & Regards
Rajesh Kohir

Hi,
I found the answer

http://ipaddress:port///bonita/API/bpm/process/6166646510612582875/design

http://ipaddress:port/bonitaAPI/bpm/process/{process_defination_id}/design

then in response look for “dataDefinitions”: part

“dataDefinitions”: [
{
“id”: “5187878995729497291”,
“name”: “product”,
“description”: null,
“type”: null,
“transientData”: false,
“className”: “java.lang.String”,
“defaultValueExpression”: null,
“longText”: true
},
{
“id”: “9089256246642326929”,
“name”: “subproduct”,
“description”: null,
“type”: null,
“transientData”: false,
“className”: “java.lang.String”,
“defaultValueExpression”: null,
“longText”: true
},
{
“id”: “7764928473011792306”,
“name”: “stage”,
“description”: null,
“type”: null,
“transientData”: false,
“className”: “java.lang.String”,
“defaultValueExpression”: null,
“longText”: true
},
{
“id”: “8566510055551912706”,
“name”: “ccy”,
“description”: null,
“type”: null,
“transientData”: false,
“className”: “java.lang.String”,
“defaultValueExpression”: null,
“longText”: true
},
{
“id”: “6999149878755809473”,
“name”: “amount”,
“description”: null,
“type”: null,
“transientData”: false,
“className”: “java.lang.String”,
“defaultValueExpression”: null,
“longText”: true
},
{
“id”: “6449549075751523413”,
“name”: “lcyamount”,
“description”: null,
“type”: null,
“transientData”: false,
“className”: “java.lang.Integer”,
“defaultValueExpression”: null
},
{
“id”: “6609814202008941271”,
“name”: “txnrefno”,
“description”: null,
“type”: null,
“transientData”: false,
“className”: “java.lang.String”,
“defaultValueExpression”: null,
“longText”: true
},
{
“id”: “5818309877423855337”,
“name”: “client_id”,
“description”: null,
“type”: null,
“transientData”: false,
“className”: “java.lang.String”,
“defaultValueExpression”: null,
“longText”: true
},
{
“id”: “8411029379289243426”,
“name”: “approvalaction”,
“description”: null,
“type”: null,
“transientData”: false,
“className”: “java.lang.Boolean”,
“defaultValueExpression”: null
}
],