Bproc cuba screen form param injection problem

Hi all,

I have a process with two tasks:

Schermata 2021-01-05 alle 22.28.57

the first is a service task that calls a spring bean that return a list of entity called personQuestionnaires.
The second is a user task with CUBA Screen with a param personQuestionnaireItem that is mapped with personQuestionnaires process variable (created at step before). Unfortunately in ScreenEditor class the parameter isn’t injected.
I verified, calling

bprocRuntimeService.getVariables(processFormContext.getTaskData().getExecutionId())

that the param personQuestionnaires is empty.

Thanks to all for the help.

The problem was that the objects created at task “Crea questionari” didn’t store in DB and in task “Compila questionario” the injection in CUBA screen was null.