I am calling API endpoint and return json {“name”:“santosh”,“address”:“delhi,india”,“phone”:“567890”}.
I want to display value in user form. I have added forms : name, address, phone in Camunda.
when load the task its automatically populated all three records based on json.
need your help; If possible please send sample bpmn files. where calling api endpoint and user form populated based on return json.
Camunda Forms populates fields based on process variables (using the process variable name and the key field in the form to correlate the data), so you need to:
the fields in the form would need to have the field Key equal to some process variable which contains the respective data. For example in your case address.
then you need to create process variables with the data you want (e.g. execution.setVariable('address', 'delhi,india')