Can I modify the variable by configuration in the task?

For example, I want to write a variable in T03 through the configuration of the following figure.

You can attach a task listener to that task, that changes the variable in an expression (something like ${task.setVariable(‘foo’, ‘bar’)}.