When setting up a custom element template and using a Dropdown Type, with a binding type of camunda:field the value chosen by the user is never saved anywhere. With a Text Type the value is saved as a camunda:string within the camunda:field. How can I use a dropdown but have it inject the user selected value into a camunda:field?
Camunda modeler version: 2.2.4
This configuration produces a value in the bpmn xml:
{
“label”: “Payload”,
“type”: “Text”,
“value”: “”,
“editable”: true,
“binding”: {
“type”: “camunda:field”,
“name”: “Payload”
}
}
If I input “abcd” into the Payload field I get xml that looks like this:
<camunda:field name=“Payload”>
camunda:stringabcd</camunda:string>
</camunda:field>
This configuration produces no value in the xml:
{
“label”: “ReadTimeout”,
“type”: “Dropdown”,
“choices”: [
{ “name”: “15s”, “value”: “15” },
{ “name”: “30s”, “value”: “30” },
{ “name”: “60s”, “value”: “60” },
{ “name”: “120s”, “value”: “120” },
{ “name”: “300s”, “value”: “300” }
],
“binding”: {
“type”: “camunda:field”,
“name”: “ReadTimeout”
}
}
If I select “15s” from the ReadTimeout drop down I get this xml:
<camunda:field name="ReadTimeout" />