Search in sources :

Example 1 with CustomStringVariableType

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);
}
Also used : CustomStringVariableType(org.alfresco.repo.workflow.activiti.variable.CustomStringVariableType) VariableType(org.activiti.engine.impl.variable.VariableType) CustomStringVariableType(org.alfresco.repo.workflow.activiti.variable.CustomStringVariableType)

Aggregations

VariableType (org.activiti.engine.impl.variable.VariableType)1 CustomStringVariableType (org.alfresco.repo.workflow.activiti.variable.CustomStringVariableType)1