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

Defined moddle extensions are not applied in Cockpit

    Details

      Description

      Steps to reproduce:

      1. Download a Camunda Distribution
      2. Move the files camunda.json (moddle extension), plugin.js (to access camunda extension properties), and config.js (to configure the moddle extension and the plugin) into $PATH_TO_TOMCAT/webapps/camunda/app/cockpit/scripts
      3. Start Camunda
      4. Open in browser http://localhost:8080/camunda/app/cockpit/default/
      5. Go to any process that contains camunda:asyncBefore (or camunda:asyncAfter) properties

      Expected Behavior:
      The Camunda moddle extension is applied, so that for example in the browser console the following is shown:

      camunda:asyncBefore true
      camunda:asyncAfter false
      camunda:asyncBefore true
      camunda:asyncAfter false
      

      Observed Behavior:
      The Camunda moddle extension is not applied, so that for example in the browser console the following is shown:

      camunda:asyncBefore undefined
      camunda:asyncAfter undefined
      camunda:asyncBefore undefined
      camunda:asyncAfter undefined
      

      Hints:

      • The BPMN is pre-transformed by the transform service, see [1].
      • The result of the pre-transform step is used to render the diagram, so that the function Viewer#importDefinitions() is called, see [2].
      • The moddle extensions are not applied when doing the pre-transform in [1].

      [1]: https://github.com/camunda/camunda-bpm-webapp/blob/3953b91e0975f9beac59f4e698114d041a56ed01/ui/cockpit/client/scripts/services/transform.js
      [2]: https://github.com/camunda/camunda-commons-ui/blob/394963252a51076a90a60a584d73a25d385b7c4a/lib/widgets/bpmn-viewer/cam-widget-bpmn-viewer.js#L318-L320

      1. camunda.json
        23 kB
        Smirnov Roman
      2. config.js
        2 kB
        Smirnov Roman
      3. plugin.js
        1.0 kB
        Smirnov Roman

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              michael.schoettes Michael Schoettes
              Reporter:
              roman.smirnov Smirnov Roman
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development