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

**URL:** <https://community.ofelia.com/t/how-to-get-just-names-of-process-variables-based-on-process-defination-id-using-rest-api/7352>\
**Category:** Q&A\
**Created:** [19 May 2016 12:36 UTC](https://community.ofelia.com/t/how-to-get-just-names-of-process-variables-based-on-process-defination-id-using-rest-api/7352 "2016-05-19T12:36:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kohirrajesh](https://avatars.discourse-cdn.com/v4/letter/k/ac8455/32.png) [@kohirrajesh](https://community.ofelia.com/u/kohirrajesh)\
**Post date:** [19 May 2016 12:36 UTC](https://community.ofelia.com/t/how-to-get-just-names-of-process-variables-based-on-process-defination-id-using-rest-api/7352/1 "2016-05-19T12:36:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kohirrajesh](https://avatars.discourse-cdn.com/v4/letter/k/ac8455/32.png) [@kohirrajesh](https://community.ofelia.com/u/kohirrajesh)\
**Post date:** [26 May 2016 10:29 UTC](https://community.ofelia.com/t/how-to-get-just-names-of-process-variables-based-on-process-defination-id-using-rest-api/7352/2 "2016-05-26T10:29:56Z")

</div>

Hi,  
I found the answer

[http://ipaddress](http://ipaddress):port///bonita/API/bpm/process/6166646510612582875/design

[http://ipaddress](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  
}  
],
