the following hackery stores a variable in the TEXT_VALUE_ column of JBPM4_VARIABLE:
EnvironmentImpl environment = processEngine.openEnvironment();
try {
taskImpl.createVariable("varName", "a real long text value here".toCharArray(), "char[]", false);
} finally {
environment.close();
}
HTH
Michael