When I use startProcessInstanceByKey method to start a process instance , if one of my variable's length longer than 255 , then a error with message ' Data truncation: Data too long for column 'STRING_VALUE_' at row 1 ' occured . What can I do on this occasion?
The default column length is 255. You have to update the *.hbm.xml file and schema queries to increase the length.
Other solution is create a HashMap and put all the values and pass that map as argument.
Map<String,Object> variables = new HashMap<String,Object>();