[jboss-user] [jBPM] - Variables types / String too large for column

Charles Aznavour do-not-reply at jboss.com
Thu Jul 29 11:52:15 EDT 2010

Charles Aznavour [http://community.jboss.org/people/charles_a] created the discussion

"Variables types / String too large for column"

To view the discussion, visit: http://community.jboss.org/message/555034#555034

Hi guys,

I´ve the following problem with the variables types in JBPM 4.4: When we store a large String as process variables, we get a hibernate exception during the saving. As far as I can see, the String is simply too large for the target column. It´s defined as VARCHAR2(255).

We currently use a serializable container object to store only one String value in it. That way it´s put in the JBPM_LOB table, everything is fine. Am I missing something? Is there a better way to deal with it?

If not, we will be forced to always use container objects as the content of variables is dynamic and can be of arbitrary size.

Btw, we use the same trick to deal with Hibernate objects. We have unsaved Hibernate objects we want to pass along as process variables. Seems trivial, but doesn´t work, because jbpm tries to save only the it´s id as a reference to this object (leading to an exception in our case). That´s annoying and we´re also using a container object here. Again, it works but doesn´t feel good.

Fiddling around with the types.xml would feel even worse ;-) Any options?



Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100729/254679a1/attachment.html 

More information about the jboss-user mailing list