Use DropDown in Element Templates

Hi,

I’ve tried using Dropdown- Lists in our bpmn.js properties panel service task. I followed the structure defined under dropdown-type and added this to our json file, that defines our template. But unfortunately the templates entry in the properties panel is then not show any more, which indicates that there is something wrong with the json file, but unluckily there is no error message in the dev tools console.

This is the json file defining the template:

[
  {
    "$schema": "https://unpkg.com/@camunda/element-templates-json-schema/resources/schema.json",
    "id": "create_order",
    "name": "Create Order",
    "description": "Create a new order to work with",
    "appliesTo": ["bpmn:ServiceTask"],
    "properties": [
      {
        "label": "Label1",
        "type": "String",
        "value": "value1",
        "binding": {
          "type": "camunda:field",
          "name": "Label1"
        }
      },
      {
        "label": "Label2",
        "type": "String",
        "value": "value2",
        "binding": {
          "type": "camunda:field",
          "name": "Label2"
        }
      },
      {
        "label": "Receivers",
        "type": "String",
        "binding": {
          "type": "camunda:inputParameter",
          "name": "receivers"
        }
      },
      {
        "label": "Task Priority",
        "type": "Dropdown",
        "value": "50",
        "choices": [
          { "name": "low", "value": "20" },
          { "name": "medium", "value": "50" },
          { "name": "height", "value": "100" }
        ]
      }
    ]
  }
]

Is Dropdown not supported or is this not the way to go? Thanks in advance for your help :wink:

Hi @Index,

just a rough guess, but the binding is missing for the dropdown.

I don’t know if this is required or not…

Hope this helps, Ingo

1 Like

Hi @Ingo_Richtsmeier,

your rough guess was pretty good and solved my problem. Thank you very much :slight_smile:

Kind regards

Index

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.