# get the variables and the value of the variables in a form defined on process

**URL:** <https://community.ofelia.com/t/get-the-variables-and-the-value-of-the-variables-in-a-form-defined-on-process/4916>\
**Category:** Q&A\
**Created:** [25 July 2014 13:47 UTC](https://community.ofelia.com/t/get-the-variables-and-the-value-of-the-variables-in-a-form-defined-on-process/4916 "2014-07-25T13:47:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gueroagnostico](https://avatars.discourse-cdn.com/v4/letter/g/a87d85/32.png) [@gueroagnostico](https://community.ofelia.com/u/gueroagnostico)\
**Post date:** [25 July 2014 13:47 UTC](https://community.ofelia.com/t/get-the-variables-and-the-value-of-the-variables-in-a-form-defined-on-process/4916/1 "2014-07-25T13:47:35Z")

</div>

How I can get the variables and the value of the variables that are in form but as an activity that are defined in the process with de API Java

---

<div class="post-metadata">

**Author:** ![florian.baillagou](https://avatars.discourse-cdn.com/v4/letter/f/b9bd4f/32.png) [@florian.baillagou](https://community.ofelia.com/u/florian.baillagou)\
**Post date:** [25 July 2014 13:59 UTC](https://community.ofelia.com/t/get-the-variables-and-the-value-of-the-variables-in-a-form-defined-on-process/4916/2 "2014-07-25T13:59:04Z")

</div>

Hi,

Did you read the documentation of the API ? Here is the link of what you’re looking for :

[http://documentation.bonitasoft.com/javadoc/api/6.3/org/bonitasoft/engine/api/ProcessRuntimeAPI.html#getProcessDataInstances](http://documentation.bonitasoft.com/javadoc/api/6.3/org/bonitasoft/engine/api/ProcessRuntimeAPI.html#getProcessDataInstances)(long, int, int)

---

<div class="post-metadata">

**Author:** ![gueroagnostico](https://avatars.discourse-cdn.com/v4/letter/g/a87d85/32.png) [@gueroagnostico](https://community.ofelia.com/u/gueroagnostico)\
**Post date:** [25 July 2014 16:08 UTC](https://community.ofelia.com/t/get-the-variables-and-the-value-of-the-variables-in-a-form-defined-on-process/4916/3 "2014-07-25T16:08:03Z")

</div>

thanks for your answer, I think I did wrong question, I need to know is how to bring the “definition” of a form in a task, the variables are defined in the process but as I get the variables associated with a task

---

<div class="post-metadata">

**Author:** ![gueroagnostico](https://avatars.discourse-cdn.com/v4/letter/g/a87d85/32.png) [@gueroagnostico](https://community.ofelia.com/u/gueroagnostico)\
**Post date:** [25 July 2014 15:42 UTC](https://community.ofelia.com/t/get-the-variables-and-the-value-of-the-variables-in-a-form-defined-on-process/4916/4 "2014-07-25T15:42:05Z")

</div>

thanks for your answer, I think I did wrong question, I need to know is how to bring the “definition” of a form in a task, the variables are defined in the process but as I get the variables associated with a task

---

<div class="post-metadata">

**Author:** ![florian.baillagou](https://avatars.discourse-cdn.com/v4/letter/f/b9bd4f/32.png) [@florian.baillagou](https://community.ofelia.com/u/florian.baillagou)\
**Post date:** [28 July 2014 06:25 UTC](https://community.ofelia.com/t/get-the-variables-and-the-value-of-the-variables-in-a-form-defined-on-process/4916/5 "2014-07-28T06:25:32Z")

</div>

You want to use variables defined in an activity/task ?

They’re only accessible on the task and the next flow. You can use them like process variable in a groovy script.
