How to get BDM Values in every Human Task Form?

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?

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

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

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

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

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

Thank you Michele! Its working!