[jboss-user] [jBPM Users] - Store long strings as variables
do-not-reply at jboss.com
Tue Oct 20 10:22:22 EDT 2009
I am currently trying to store strings of various lengths into JBPM4 context.
This works fine until the string reaches the maximum size defined in the database, then crashes.
The behavior I am trying to obtain is the following :
* String is stored as a String if shorted than the limit.
* String is stored as a Blob if it longer than the limit.
I have tried to remove the following line in the jbpm.variables.types.xml file :
<type name="string" class="java.lang.String" variable-class="org.jbpm.pvm.internal.type.variable.StringVariable" />
This works just fine, as all strings are saved a Blobs as Strings are Serializable . (which is not what I am aiming at).
Is my understanding correct when I assume it is not possible to have my strings handled as Strings or as Blobs depending on their size just with configuration ?
I was thinking of implementing another Variable class in order to replace org.jbpm.pvm.internal.type.variable.StringVariable and handle this. Does it make any sense or is there a much simpler way to do this ?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261277#4261277
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261277
More information about the jboss-user