camunda / camunda-modeler-plugins

Plugins for the Camunda Modeler.
166 stars 67 forks source link

Camunda Modeler Plugin to show Transaction Boundaries is "not a registered action" #109

Open philogilvie1 opened 1 month ago

philogilvie1 commented 1 month ago

The Bug and How to Reproduce

After copying the camunda-modeler-token-simulation-plugin files from https://github.com/camunda/camunda-modeler-plugins.git into the specified ~/Library/Application Support/camunda-modeler/resources/plugins directory the Desktop Camunda Modeler recognises the plugin. However, when the menu item Plugins / Transaction Boundaries / Toggle Transaction Boundaries is selected the following error is generated:

toggleTransactionBoundaries is not a registered action
    at a (webpack://camundanode_modules/diagram-js/lib/features/editor-actions/EditorActions.js:266:9)
    at error (webpack://camundanode_modules/diagram-js/lib/features/editor-actions/EditorActions.js:175:10)
    at Uc.<anonymous> (webpack://camunda-modeler-token-simulation-plugin/node_modules/bpmn-js-token-simulation/lib/features/disable-modeling/DisableModeling.js:111:0)
    at obj.<computed> (webpack://camunda-modeler-token-simulation-plugin/node_modules/bpmn-js-token-simulation/lib/features/disable-modeling/DisableModeling.js:36:0)
    at trigger (webpack://camunda-modeler-client/src/app/tabs/cloud-bpmn/BpmnEditor.js:709:40)
    at triggerAction (webpack://camunda-modeler-client/src/app/tabs/MultiSheetTab.js:269:18)
    at triggerAction (webpack://camunda-modeler-client/src/app/tabs/EditorTab.js:36:33)
    at file:///Applications/Camunda%20Modeler.app/Contents/Resources/app.asar/public/bundle.js:2:3584297
    at fn (webpack://camunda-modeler-client/src/app/App.js:2447:19)
    at file:///Applications/Camunda%20Modeler.app/Contents/Resources/app.asar/public/bundle.js:2:3588837 [ error ]
This error may be the result of a plug-in compatibility issue. [ info ]

Expected Behavior

I would expect the BPMN diagram to show the red lines as per image

Environment

marstamm commented 1 month ago

Hi @philogilvie1 ,

I can reproduce this issue. While the error message is not expected, the "Transaction Boundaries" is a Plugin for Camunda 7 to show the database transaction boundaries. You are trying to use it in a diagram for Camunda 8. Camunda 8 does not have a relational database and therefore no Transaction boundaries.

In a Camunda 7 diagram, the Plugin works as expected for me