How to access process variables from UI

1
0
-1

Hi!

I have a business process variable named vProc that has an integer value initialize of 125.
I initialize the process by a UI Form that has these variables:
task | ../API/bpm/task/{{taskId}} | External API
taskId | id | URL parameter
vProc | ../API/bpm/caseVariable/{{task.caseId}}/vProc | External API

In my form I have three Text Areas to show the values: task.id | vProc | taskId

When I run the application in studio I only get the value for taskId. While it is running I also run in another tab the RestAPI queries:
http://localhost:8080/bonita/API/bpm/task?c=10 this shows a task that has a processId different from the one I get in the display of taskId.
Furthermore, I ask for http://localhost:8080/bonita/API/bpm/task?c=10&f=processId=6759102631276... (the long number is the one displayed in taskId) and I receive an empty answer.

If I request http://localhost:8080/bonita/API/bpm/task?c=10&f=processId=6329341528391... where the long number is the one that appears using task?c=10 it shows the same JSON as when I ask the task?c=10

How can I get the process Variable in the initiator form?

Thanks in advance

No answers yet.
Notifications