camunda / element-templates-json-schema

JSON Schema for (Camunda) Element Templates
10 stars 7 forks source link

Support message templates in JSON schema #96

Closed barmac closed 1 year ago

barmac commented 1 year ago

What should we do?

Support templates like:

{
  "name": "Message Template",
  "id": "com.camunda.example.MessageTemplate",
  "appliesTo": [
    "bpmn:IntermediateCatchEvent"
  ],
  "elementType": {
    "value": "bpmn:IntermediateCatchEvent",
    "eventDefinition": "bpmn:MessageEventDefinition"
  },
  "properties": [
      {
        "label": "Message name",
        "type": "String",
        "generatedValue": "uuid",
        "editable": false,
        "binding": {
          "type": "bpmn:Message#property",
          "name": "name"
        }
      },
      {
        "label": "Correlation Key",
        "type": "String",
        "feel": true,
        "binding": {
          "type": "bpmn:Message#zeebe:subscription#property",
          "name": "correlationKey"
        }
      }
  ]
}

Why should we do it?

Required for https://github.com/camunda/camunda-modeler/issues/3403