[jboss-user] [jBPM] - jbpm 4.1 using "clob" variables

Michael Wohlfart do-not-reply at jboss.com
Mon May 10 13:45:26 EDT 2010


Michael Wohlfart [http://community.jboss.org/people/mwohlf] replied to the discussion

"jbpm 4.1 using "clob" variables"

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

--------------------------------------------------------------
Hi Tim,

the TEXT_VALUE_ column is for char[], the test case goes like this:

public void testCharsVariable() {
    ExecutionImpl execution = startProcessInstance();
    char[] chars = generateChars("a lot of bytes ", 500);
    assertTrue(chars.length>4500);
    execution.setVariable("v", chars);
    Variable variable = execution.getVariableObject("v");
    assertEquals(TextVariable.class, variable.getClass());
    assertTrue(Arrays.equals(chars, (char[]) execution.getVariable("v")));
  }

if you want to extend the size for the STRING_VALUE_ column, it is configured in
jbpm.execution.hbm.xml:

<subclass name="org.jbpm.pvm.internal.type.variable.StringVariable" extends="org.jbpm.pvm.internal.type.Variable" discriminator-value="string">
    <property name="string" column="STRING_VALUE_" type="string"/>
</subclass>

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/542093#542093]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100510/d1089d2e/attachment-0001.html 


More information about the jboss-user mailing list