u can write a java action to achive this with less work just pass it the value from ur end and then in java u can map the value to a enum in a for each loop with Enum.valuesAll()
As an addition to Chandresh, here is a link of a Java example (note that the blog is a little older and a slightly different solution than Chandresh).
Community Commons has an EnumerationFromString Java action that uses `LogLevel` as an example enumeration. Duplicate and modify it to reflect your desired enumeration class.