Populate dropdown when custom palette activity is on canvas

I using camunda modeler at my project and create custom entries on the palette.

Here is a template of custom element

 {
"name": "Select Room",
"id": "com.avispl.symphony.delegate.camunda.SelectRoom",
"appliesTo": ["bpmn:ServiceTask"],
"properties": [
  {
    "label": "Select Location",
    "type": "Dropdown",
    "choices": [
      { "name": "Topic 1", "value": "nameOfTopic1" },
      { "name": "Topic 2", "value": "nameOfTopic2" }
    ],
    "binding": {
      "type": "camunda:inputParameter",
      "name": "roomId"
    }
  },
  {
    "label": "Java Class",
    "type": "String",
    "value": "com.avispl.symphony.delegate.camunda.SelectRoom",
    "editable": false,
    "binding": {
      "type": "property",
      "name": "camunda:class"
    }
  }
],
"entriesVisible": {
  "_all": false,
  "name": true
}

}

When I drag this element to canvas I need to populate choices with JSON from server

I have functions for this.

How I can to run this function and populate dropdown?