Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-9534

Can't load model with empty tags specified in element template

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • None
    • 7.10.0-alpha4
    • None
    • None

      Hi,

      I have an elements.json file defined like this:

      {
      "name": "Rest GET",
      "id": "jpl.cws.task.RestGetTask",
      "appliesTo": [
      "bpmn:ServiceTask"
      ],
      "properties": [
      {
      "label": "Implementation Type",
      "type": "Hidden",
      "value": "jpl.cws.task.RestGetTask",
      "editable": false,
      "binding":

      { "type": "property", "name": "camunda:class" }

      },
      {
      "label": "Url",
      "type": "String",
      "binding":

      { "type": "camunda:field", "name": "url", "expression": true }

      ,
      "constraints":

      { "notEmpty": true }

      },
      {
      "label": "Keytab Username",
      "type": "String",
      "binding": { "type": "camunda:field", "name": "keytabUsername", "expression": true }
      },

      ...

      The field keytabLocation can remain empty and generates a BPMN model tag like this:

      <camunda:field name="keytabUsername" />

      ...

      Then when I try to load the BPMN in Camunda I get this error:

      ERROR: Failed to deploy process definition XML (rest_test2.bpmn) and/or notify workers. (Message = 'ENGINE-09005 Could not parse BPMN process. Errors: * One of the following is mandatory on a field declaration: one of attributes stringValue|expression or one of child elements string|expression | rest_test2.bpmn | line 12 | column 135')

      It won't let me load the model because this field is empty. This seems like a bug to me since the elements.json just specifies a field and doesn't allow it to be empty.

      Please look into this.

      Thank you!

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              jamesfwood James Wood
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: