I'm trying to build a client side javascript application to interact with my process but when I use any REST API call to retrieve information about process variables I only get the toString() value for the class of the Data Model.
I tried to override the toString method using reflection to return a json-like representation of the object but since some of my models have other models as properties, the property name will show correctly but their value is null while *some* of the String properties will return the correct value. If I print the object inside a script task the correct values for the properties are shown.
I'm also affected by this problem [JBPM-4221] 256 character limitation in process variable values - JBoss Issue Tracker
How am I supposed to get the values for Data Model process variables?
Thank you.