cancel
Showing results for 
Search instead for 
Did you mean: 

Can't create enum form field in Modeler

vreznikov
Champ in-the-making
Champ in-the-making
I am using Activiti 5.13. It looks like Modeler does not allow creation "enum"type form field. If I export bpnm20 file and add this field manually then import it back and deploy the values for this field got removed (as a result the drop down box is empty when I run my process).
The second problem is also described here http://forums.activiti.org/content/problem-formproperty-enum-type-actviti-explorer-512.
Please help.
3 REPLIES 3

vreznikov
Champ in-the-making
Champ in-the-making
I've created Jira http://jira.codehaus.org/browse/ACT-1791
Jira admin has to add subcomponent "Modeler" though…

jonnycarter
Champ in-the-making
Champ in-the-making
Yup, I have the same problem. This even happens if I import the Vacation Request process defined in the User Guide. Upvoted your issue. Smiley Happy

jonnycarter
Champ in-the-making
Champ in-the-making
Repost of my comment from the JIRA issue:

This is a bigger problem than simply the modeler. If you create a process .bpmn file using the Eclipse plugin (or just typing straight XML), enum fields actually have their values removed from the process. Processes containing enum fields can be deployed, and they do appear as drop-down menus, they just have no options available.

If I look at the byte array data in the ACT_GE_BYTEARRAY table, I can confirm that the BLOB of the xml doesn't contain the tags like:
<code><activiti:value id=… name=…></activiti:value></code>

They've simply been stripped out of the enum tag.

Just for grins, I tried manually updating the BYTES_ column in ACT_GE_BYTEARRAY to a new CLOB that contained the value tags. Surprise! It works.

So, the problem isn't with the form renderer. If I had to guess, I'd say it's with the BpmnXMLConverter.java file.

https://github.com/Activiti/Activiti/blob/c16df687699e6631f5b2fdbb4c718c2cfb0bd369/modules/activiti-...