CommunityCommons has an EnumerationFromString java action you can use as an example. It uses the LogLevel enumeration, but you can replace it with your own enumeration in the import section and modify the parameter in the function it calls.
Hello, thank you for your response.
It’s not possible to add new values to the enumeration at runtime — is that correct?
This because enumerations are static and defined at design time.