AnsweredAssumed Answered

Dynamic Enum Form Property

Question asked by ykphuah on Jan 20, 2015
Latest reply on Jan 22, 2015 by ykphuah
I want to have a enum list that is dynamically populated, I have searched the forum and saw this example:

http://www.jorambarrez.be/blog/2013/03/13/creating-a-new-form-property-in-activiti/

What I want is a slightly more advanced, I am not using the activity-explorer, but I want to use the activiti-designer eclipse plugin.

So for example, if I want to populate the list of users, based on a "user group" that I will be able to pass in in the activiti designer plugin. Is this possible?

I saw the "Form property configuration" of the activiti-designer have a few parameters like express, variable, but I can't seem to get this from the FormProperty object when I want to render it on my own.

I tried to use back the "Form values", and base my base class on EnumFormType, but this can't work as well because EnumFormType is expecting the list to be passed in the constructor, while my class is created by Spring with an empty constructor.

Outcomes