Use local and process variable in form

Hi, i tried to use process variable in UI Form. To do this i used Bonita REST API for:
localVar ../API/bpm/activityVariable/{{task.id}}/localVar
processVar ../API/bpm/caseVariable/{{task.rootContainerId}}/processVar

[localVar] - Bonita process local variable (for task), of BDM Type.
[processVar] - Bonita process variable, the same type as above.

BDM Type
attr1 - string
attr2 - string
attr3 - int
attr4 - string

How to get local variable from a task to enter value in email

I created two date variables to get the date and time that started and finished the task, so I put the variables in the tasks as a local variable.

However I need the variables to insert into the end email ....

Please I need help