Template properties values from external service

Good morning Camunda,

I am creating template for user tasks
It looks like:

{
        "name": "Motor init model",
        "id": "com.camunda.example.motor",
        "appliesTo": [
            "bpmn:UserTask"
        ],
        "properties": [
            {
                "label": "Motor brand",
                "type": "String",
                "value": "Ford",
                "binding": {
                    "type": "camunda:inputParameter",
                    "name": "motorBrand"
                }
            },
            {
                "label": "Motor type",
                "type": "Dropdown",
                "value": "1",
                "choices": [
                    {
                        "name": "Gas",
                        "value": "1"
                    },
                    {
                        "name": "Petrol",
                        "value": "2"
                    },
                    {
                        "name": "Diesel",
                        "value": "3"
                    }
                ],
                "binding": {
                    "type": "camunda:inputParameter",
                    "name": "motorType"
                }
            }
        ]
    }

Is there is a way to make this Dropdown choices dynamic I mean load from some service
instead of hardcode in json

Kr
Mark

I think that’s not possible currently, but you could open an issue for that.

1 Like