1 Reply Latest reply on Nov 10, 2009 4:46 AM by robinthomas

    variable problem

      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?

        • 1. Re: variable problem

          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>();
          variables.put("String",)
          executionService.startProcessInstanceByKey(processDefKey, variables)