How to check if particular value present inside enum ?

0
We want to check if a string value is present inside the enum like we do in list operations similar I want to implement for enum. Is there any enum expression in which we could check the value present  in enum? Thank you.
asked
1 answers
0

Use EnumerationFromString from CommunityCommons and see if it returns an enum or an empty value.

To use EnumerationFromString create this javaaction:

  • Add a JavaAction (rightclick on a module => Add other => Java action) and give it a name
  • Add a string parameter as input value
  • As return type, set the enumeration that you want to convert to
  • Add this code to your javaaction:
    // BEGIN USER CODE
    return String;
    // END USER CODE
     
answered