An enum type form property in model designed in Activiti modeler does not show during execution

Description

When a model with the enum type form property created in Activiti modeler deployed and executed, the combo box of the enum type form is empty.

I tried to have a look deeply into the problem.
In MySQL db, the JSON of the model's enum type form property is stored as:
"formproperties":{
"formProperties":[
{
"id":"approved",
"name":"approved",
"type":"enum",
"readable":true,
"writable":true,
"enumValues":[
{
"value":"yes",
"$$hashKey":"0RN"
},
{
"value":"no",
"$$hashKey":"0RO"
}
]
}

However when deploy the model, its BPMN20.xml is:
<startEvent id="sid-7884E214-71EE-468E-AD1F-E76499DD8C41">
<extensionElements>
<activiti:formProperty id="approved" name="approved" type="enum"></activiti:formProperty>
</extensionElements>
</startEvent>

instead of:
<startEvent id="sid-7884E214-71EE-468E-AD1F-E76499DD8C41">
<extensionElements>
<activiti:formProperty id="approved" name="approved" type="enum">
<activiti:value id="yes" name="yes"></activiti:value>
<activiti:value id="no" name="no"></activiti:value>
</activiti:formProperty>
</extensionElements>
</startEvent>

Environment

Windows, tomcat-8.0.20, MySQL 5.6

Assignee

Tijs Rademakers

Reporter

Karn Yongsiriwit

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure