Hi Rene,
this is possible with the following restriction:
the Class of the variable must be known to cockpit (must be visible in the cockpit / camunda-webapp classpath).
Out of the box, this is true for things like List<String> but not for things like org.my.project.MyType.
Cheers,
Daniel