[CAM-9603] Defined moddle extensions are not applied in Cockpit Created: 17/Dec/18  Updated: 05/Feb/19  Resolved: 08/Jan/19

Status: Closed
Project: camunda BPM
Component/s: webapp
Affects Version/s: None
Fix Version/s: 7.11.0, 7.10.2, 7.11.0-alpha1

Type: Bug Report Priority: L3 - Default
Reporter: Smirnov Roman Assignee: Michael Schoettes
Resolution: Fixed Votes: 0
Labels: SUPPORT
Remaining Estimate: 0 minutes
Time Spent: Not Specified
Original Estimate: 0 minutes

Attachments: File camunda.json     File config.js     Zip Archive demo_plugin.zip     File plugin.js    
Issue Links:
Depedendency
depends on CAM-9602 Cannot login into Cockpit, when provi... Closed

 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


Generated at Mon Nov 11 23:47:47 CET 2019 using JIRA 6.4.6#64021-sha1:33e5b454af4594f54560ac233c30a6e00459507e.