AnsweredAssumed Answered

ParameterDefinitionImpl - with constraint

Question asked by mtw999 on Mar 13, 2014
Latest reply on Sep 19, 2017 by sayeed

I'm using ParameterDefinitionImpl ctor that has takes a constraint as a String value. How do I specify the constraint if the constraint is defined in my model:

paramList.add(new ParameterDefinitionImpl(PARAM_MY_PARAM, DataTypeDefinition.TEXT, false,
        getParamDisplayLabel(PARAM_MY_PARAM), false, "mydocument:my_constraint"));

does not work.

  <constraint name="mydocument:my_constraint" type="LIST">
   <parameter name="allowedValues">