HerdProcessEngineConfigurator implements ProcessEngineConfigurator { @Override public void configure(ProcessEngineConfigurationImpl processEngineConfiguration) { VariableTypes variableTypes = processEngineConfiguration.getVariableTypes(); VariableType stringType = new StringType(2000); int indexToInsert = replaceVariableType(variableTypes, stringType, 0); VariableType longStringType = new LongStringType(2001); replaceVariableType(variableTypes, longStringType, ++indexToInsert); }  @Override void beforeInit(ProcessEngineConfigurationImpl configuration); @Override void configure(ProcessEngineConfigurationImpl processEngineConfiguration); @Override int getPriority();  }
@Test public void testNoStringAndLongStringType() throws Exception { SpringProcessEngineConfiguration configuration = new SpringProcessEngineConfiguration(); configuration.setVariableTypes(new DefaultVariableTypes()); herdProcessEngineConfigurator.configure(configuration); VariableType type = configuration.getVariableTypes().findVariableType(StringUtils.repeat("a", 2000)); assertEquals(StringType.class, type.getClass()); type = configuration.getVariableTypes().findVariableType(StringUtils.repeat("a", 2001)); assertEquals(LongStringType.class, type.getClass()); }