Get enum from string captions, even caption have spaces thorugh java action or community commons

0
Hi, i want to get enum from the string (caption). I followed this tutorial https://medium.com/mendix/customizing-java-actions-mendix-25ec5cc14f24 . And it working as expected if the caption and value is same. But it is causing error when the caption has any spaces. Ie if caption and values are different. I know we can use microflow  with getcaption option to manually check for each enum. But it won't be feasible if we have many enums and for future perspective. Could some one please help me on this. Thanks in advance
asked
0 answers