Solved: Obtaining data from Form into Pool variable


I missed the step to add Execution > Contract > Inputs and to define the type there.

Hi guys,
I have an issue I'm not able to solve, any sort of help is appreciated.

In the form, I have an formInput defined as
"person" : {
"name" : "",
"age" : "",
"height" : ""

An formOutput as
return {
'person': $data.formInput.person

The all three values are inputs from Input widget.
name has type of Text, age and height have type of Number

Also, I have three pool variables:
name : Text
age : Integer
height : Double

So, in a Human task, in Execution > Operation, I can assign
name Takes value of
age Takes value of formInput.person.age

But when I try to assign
height Takes value of formInput.person.height
I get error
org.bonitasoft.engine.core.process.instance.api.exceptions.SActivityStateExecutionException: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Expression formInput.person.height with content = <formInput.person.height> depends on formInput is neither defined in the script nor in dependencies.

I've aslo tried to do it with a scripts:
return (Double) formInput.person.height
return formInput.person.height.toDouble()
return formInput.person.height.toString().toDouble()

Tnx in advance,

No answers yet.