public String validateWorkflowState(Object aValue) throws NSValidation.ValidationException {
String strValue = ObjectUtils.toString(aValue, null);
if(StringUtils.isEmpty(strValue)) {
throw new ERXValidationFactory().createCustomException(this, KEY_WORKFLOW_STATE, strValue, ERXValidationException.NullPropertyException);
}
// Must be one of acceptable values
if (!WORKFLOW_STATES.contains(strValue)) {
throw new ERXValidationFactory().createCustomException(this, KEY_WORKFLOW_STATE, strValue, ERXValidationException.InvalidValueException);
}
return strValue;
}