How to check if particular value present inside enum ?
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.
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
// END USER CODE