In usertask, I defined a form property named "decision", binded to the process variable "decisionChef". If I query the form properties of the associated task, I get the correct value, but when I complete the task with a new value, a process variable named "decision" is created and the process variable decisionChef isn't updated. If I don't use the REST-API but perform the operation using Activiti-explorer, "decisionChef" is ok.
I created a new Rest-Ressource in my copy of the Activiti-rest application, I coded it in the same way the it's done in the activiti explorer, I used formService.submitTaskFormData(taskId, variables) in place of taskService.complete(taskId, variables) and it seems to be ok.
Is it normal that the taskService.complete method does'nt bind the properties to variables like formService does it ? A bug ? Something tricky I didn't understood ?