use of org.alfresco.repo.workflow.activiti.variable.CustomStringVariableType in project alfresco-repository by Alfresco.
the class AlfrescoProcessEngineConfiguration method initVariableTypes.
@Override
protected void initVariableTypes() {
super.initVariableTypes();
// Add custom types before SerializableType
if (customTypes != null) {
int serializableIndex = variableTypes.getTypeIndex(SerializableType.TYPE_NAME);
for (VariableType type : customTypes) {
variableTypes.addType(type, serializableIndex);
}
}
// WOR-171: Replace string type by custom one to handle large text-values
int stringIndex = variableTypes.getTypeIndex("string");
variableTypes.removeType(variableTypes.getVariableType("string"));
variableTypes.addType(new CustomStringVariableType(), stringIndex);
}
Aggregations