I cant update user custom info by groovy script


I need to update a user custom info value using a groovy script after a task did complete.

I have a script task, befor end process and after the main task. Inside a script task there is a Script connector with this code inside:

import org.bonitasoft.engine.api.CustomUserInfoAPI
import org.bonitasoft.engine.identity.CustomUserInfoValue

CustomUserInfoAPI customInfo;

return customInfo.setCustomUserInfoValue(106, 301, "78");