It seems you want to convert a string to enum with checking. Create a java action with param ‘value’ that returns an enumeration and with code like this
if(value != null && !value.isEmpty() && Enum_XXX.valueOf(value) != null) {
return Enum_XX.valueOf(value).name();
}
return null;