AnsweredAssumed Answered

How to get enum values in activiti and what is return type of getType() of FormProperty in activiti?

Question asked by anantha on Jul 12, 2013
Latest reply on Jul 17, 2013 by frederikheremans1
I want to get the values of the enum property.
In activiti 5.13 userguide,

the enumeration values are accessible with formProperty.getType().getInformation("values")

In activiti docs,return type of getType() is FormType. But in my code getType() return type is String. So i couldn't call FormType's getInformation() method.

When i am using formProperty.getType().getInformation("values"), i got the following error.

Cannot cast object 'enum' with class 'java.lang.String' to class 'org.activiti.engine.form.FormType'.
How could i get the values of enum?

Outcomes