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

Defined moddle extensions are not applied in Cockpit

XMLWordPrintable

      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

        This is the controller panel for Smart Panels app

          1. plugin.js
            1.0 kB
          2. demo_plugin.zip
            3 kB
          3. config.js
            2 kB
          4. camunda.json
            23 kB

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

                Created:
                Updated:
                Resolved: