JBoss Community

Variables types / String too large for column

reply from Michael Wohlfart in jBPM - View the full discussion

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

Reply to this message by going to Community

Start a new discussion in jBPM at Community