{
  "name": "MailTask",
  "id": "my.mail.Task",
  "appliesTo": [
    "bpmn:Task"
  ],
  "properties": [
    {
      "label": "Recipient",
      "type": "String",
      "binding": {
        "type": "camunda:inputParameter",
        "name": "recipient"
      },
      "constraints": {
        "notEmpty": true
      }
    },
    {
      "label": "Template",
      "type": "Text",
      "description": "By the way, you can use freemarker templates ${...} here",
      "value": "Hello ${firstName}!",
      "binding": {
        "type": "camunda:inputParameter",
        "name": "messageBody",
        "scriptFormat": "freemarker"
      },
      "constraints": {
        "notEmpty": true
      }
    },
    {
      "label": "Ergebnisvariable",
      "type": "String",
      "value": "mailResult",
      "binding": {
        "type": "camunda:outputParameter",
        "source": "${mailResult}",
        "scriptFormat": "freemarker"
      },
      "constraints": {
        "notEmpty": true
      }
    },
    {
      "type": "Hidden",
      "value": "SECRET",
      "binding": {
        "type": "camunda:inputParameter",
        "name": "hiddenField"
      }
    }
  ]
}