How to get enum values?

cancel
Showing results for 
Search instead for 
Did you mean: 
vamsinipun
Established Member

How to get enum values?

Jump to solution

Hi Team,

I am using activiti in my spring application. I was set the  data type as 'enum'. Now i need set of values to display in java. 

Please let me know about this.

Thanks

1 Solution

Accepted Solutions
vamsinipun
Established Member

Re: How to get enum values?

Jump to solution

I got the solution.

List<FormProperty> formProperties = formService.getTaskFormData(task.getId()).getFormProperties();
formProperties.forEach(f-> {
System.out.println("fields: "+f.getId()+", "+f.getName()+", "+f.getType().getName()+", "+f.getType().getInformation("values"));
});

View solution in original post

1 Reply
vamsinipun
Established Member

Re: How to get enum values?

Jump to solution

I got the solution.

List<FormProperty> formProperties = formService.getTaskFormData(task.getId()).getFormProperties();
formProperties.forEach(f-> {
System.out.println("fields: "+f.getId()+", "+f.getName()+", "+f.getType().getName()+", "+f.getType().getInformation("values"));
});