03-11-2011 06:30 AM
03-11-2011 07:49 AM
ProcessEngineConfigurationImpl processEngineConfiguration = ((ProcessEngineImpl)processEngine).getProcessEngineConfiguration(); SqlSession session = processEngineConfiguration.getDbSqlSessionFactory().getSqlSessionFactory().openSession();
Connection connection = session.getConnection();
Statement jdbcStatement = connection.createStatement();
jdbcStatement.execute("ALTER TABLE ACT_RU_VARIABLE ALTER TEXT_ CLOB");
jdbcStatement.close();
03-11-2011 11:25 AM
03-14-2011 10:43 AM
03-14-2011 11:28 AM
Another solution could be the folowing:
The org.activiti.engine.impl.variable.StringType should overflow all characters between 255 and 510 into the TEXT2_ column.
StringType getValue() returns concatenated string including TEXT1_ and TEXT2_ columns.
Querying for String-values will continue to work untill 510 (eg. executionQuery.variableValueEquals('str', 'XXX')
When String is longer than 510 characters, false is returned when calling 'isAbleToStore(…)'. The String will eventually be stored by the SerializableType.
This way, strings can grow transparantly larger than the limitation. Offcourse, the limitaion for variable-value-querying should be docced.
WDYT?
03-14-2011 11:41 AM
03-14-2011 12:06 PM
03-14-2011 12:26 PM
03-15-2011 03:55 AM
03-16-2011 06:38 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.