cancel
Showing results for 
Search instead for 
Did you mean: 

Annotation to load combobox items from a external file datasource

cortelos
Champ in-the-making
Champ in-the-making
Hi,

I build a new annotation which make possible to load combobox property items from a datasource (at this moment only filebased is support, but it's easy to provide new ways). With annotation it's now possible to load values on the combobox wich depends of some external sources. Here is an example:


@Property(type = PropertyType.COMBOBOX_CHOICE, displayName = "Destination Device", required = true)
   @Help(displayHelpShort = "Destination Device", displayHelpLong = "The name of the destination device to transfer the file.")
   @PropertyItems({ "OLD 1", "OLD 2" })
   @PropertyItemsDataSource(filename="D:/valueList.txt")
   private String destinationDevice;


Any interest in include this in the designer source code?

I put two patchs in my dropbox account with the changes I made.

https://www.dropbox.com/s/ioetbuybnm6abxp/0001-Annotation-to-load-combobox-items-from-a-external-fi....
https://www.dropbox.com/s/282j3tnng7uysws/0002-Annotation-to-load-combobox-items-from-a-external-fi....




Regards,
André Macedo.
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
Patches are easiest to discuss using pull requests on https://github.com/Activiti/Activiti-Designer