random order in enum fields
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2011 05:58 PM
Hello,
next one newbie on a board
The problem is:
I have enum field definition
and then Activiti Explorer shows form with this order:
3
2
1
4
Anybody want to explain me (warning: newbie!) what am I doing wrong?
regards
next one newbie on a board

The problem is:
I have enum field definition
<activiti:formProperty id="myTask" name="My task" type="enum" required="true"> <activiti:value id="1" name="1"></activiti:value> <activiti:value id="2" name="2"></activiti:value> <activiti:value id="3" name="3"></activiti:value> <activiti:value id="4" name="4"></activiti:value> </activiti:formProperty>
and then Activiti Explorer shows form with this order:
3
2
1
4
Anybody want to explain me (warning: newbie!) what am I doing wrong?
regards
Labels:
- Labels:
-
Archive
7 REPLIES 7

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2011 09:34 AM
Hi,
And is that always the case? Then it's probably a bug.
Could you raise a JIRA?
Best regards,
And is that always the case? Then it's probably a bug.
Could you raise a JIRA?
Best regards,
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2011 02:07 PM

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2011 05:53 AM
Hi,
The enum id and name values are stored with a Map inside the Activiti Engine.
Therefore the order of the enum values can not be restored.
Best regards,
The enum id and name values are stored with a Map inside the Activiti Engine.
Therefore the order of the enum values can not be restored.
Best regards,
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2011 03:53 AM
Hi,
it is not good news…
I often have multiple items (>20) in enum fields. And random order makes it almost unusable.
Could you suggest any temporary solution or workaround? Maybe alphabetical order at least?
regards
Tom
it is not good news…
I often have multiple items (>20) in enum fields. And random order makes it almost unusable.
Could you suggest any temporary solution or workaround? Maybe alphabetical order at least?
regards
Tom

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2011 04:52 AM
Okay I understand. Are you using the Activiti Explorer for this?
Then I would advise to create a new form field component that does this sorting for you.
I can help you with this when that's needed.
Best regards,
Then I would advise to create a new form field component that does this sorting for you.
I can help you with this when that's needed.
Best regards,

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2012 06:02 AM
Are there any reference or guideline in the creation of this kind of component?
Thanks in advice.
Thanks in advice.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2012 10:57 AM
Hi,
The Activiti Explorer contains a couple of Form types that you can use as a reference.
I also written a section about it in my Activiti in Action book.
Best regards,
The Activiti Explorer contains a couple of Form types that you can use as a reference.
I also written a section about it in my Activiti in Action book.
Best regards,
