# How to get BDM Values in every Human Task Form?

**URL:** <https://community.ofelia.com/t/how-to-get-bdm-values-in-every-human-task-form/7527>\
**Category:** Q&A\
**Created:** [28 June 2016 09:41 UTC](https://community.ofelia.com/t/how-to-get-bdm-values-in-every-human-task-form/7527 "2016-06-28T09:41:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanni047](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@kanni047](https://community.ofelia.com/u/kanni047)\
**Post date:** [28 June 2016 09:41 UTC](https://community.ofelia.com/t/how-to-get-bdm-values-in-every-human-task-form/7527/1 "2016-06-28T09:41:28Z")

</div>

I created a process and want to get BDM Values submitted by the Initiator in each and every Human Tasks Form,  
how can I achieve this, can any one help me?

---

<div class="post-metadata">

**Author:** ![michele.pantano](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@michele.pantano](https://community.ofelia.com/u/michele.pantano)\
**Post date:** [28 June 2016 13:43 UTC](https://community.ofelia.com/t/how-to-get-bdm-values-in-every-human-task-form/7527/2 "2016-06-28T13:43:11Z")

</div>

In every form, you have to define three variables:

1. name: taskId, value:id, type: URL parameter
2. name: context, value:/bonita/API/bpm/userTask/{{taskId}}/context, type: External API
3. name: varName, value: …/{{context.yourVar\_ref.link}}, Type: External API

where yourVar is the name you used to define variable in process.  
Hope this can help

---

<div class="post-metadata">

**Author:** ![michele.pantano](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@michele.pantano](https://community.ofelia.com/u/michele.pantano)\
**Post date:** [29 June 2016 07:05 UTC](https://community.ofelia.com/t/how-to-get-bdm-values-in-every-human-task-form/7527/3 "2016-06-29T07:05:41Z")

</div>

Hi kanni,

the “problem” is very simple.

Look at what your’re doing in your ManagerForm:

- you set Item with value data.myshop.item (correct, but I suggest to put it read-only, if you don’t want to modify the value)

- you set Cost with value data:myshop.cost (correct, but I suggest to put it read-only, if you don’t want to modify the value)

- you set quantity with value data:formInput.shopInput.quantity.

You define form input as **{ “shopInput” : { “item” : “”, “cost” : “”, “quantity” : “” } }**  
When you click on submit, ManagerForm form sends to /bonita _formOutput_ variable, which is **return { ‘shopInput’: $data.formInput.shopInput };**  
but in this way, ManagerForm will post _item_ and _cost_ as null (overwriting their values in operations), and only quantity is correctly populated, as quantity value is set into _formInput.shopInput.quantity_ while \*item \*and \*cost \*values aren’t set into formInput variable. In order to get what you want I suggest you simply to remove setItem and setCost from Operations, to avoid to overwrite their values with null values

Have a try

---

<div class="post-metadata">

**Author:** ![kanni047](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@kanni047](https://community.ofelia.com/u/kanni047)\
**Post date:** [29 June 2016 05:26 UTC](https://community.ofelia.com/t/how-to-get-bdm-values-in-every-human-task-form/7527/4 "2016-06-29T05:26:36Z")

</div>

This is not working, I tried like above only,  
can you once see the Bos file and Gif image of the process. Below are the links

Bos file link : [https://drive.google.com/open?id=0B-fY7V2DJcEUYnJJQ19fOVhYaG8](https://drive.google.com/open?id=0B-fY7V2DJcEUYnJJQ19fOVhYaG8)

Gif Image: [https://drive.google.com/open?id=0B-fY7V2DJcEUMlpvWHg3Sml5MVU](https://drive.google.com/open?id=0B-fY7V2DJcEUMlpvWHg3Sml5MVU)

Bar file: [https://drive.google.com/open?id=0B-fY7V2DJcEUazBzV2dhbDlSQjg](https://drive.google.com/open?id=0B-fY7V2DJcEUazBzV2dhbDlSQjg)

---

<div class="post-metadata">

**Author:** ![kanni047](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@kanni047](https://community.ofelia.com/u/kanni047)\
**Post date:** [29 June 2016 09:40 UTC](https://community.ofelia.com/t/how-to-get-bdm-values-in-every-human-task-form/7527/5 "2016-06-29T09:40:04Z")

</div>

Thank you Michele! Its working!
