cancel
Showing results for 
Search instead for 
Did you mean: 

How to get enum values?

vamsinipun
Star Contributor
Star Contributor

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 ACCEPTED ANSWER

vamsinipun
Star Contributor
Star Contributor

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 answer in original post

1 REPLY 1

vamsinipun
Star Contributor
Star Contributor

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"));
});