Prevent from opening a decision in dmn-js

Hello :slight_smile:

I am searching for a nice solution regarding the below customisation for my React application:

I want when the user clicks on a decision in a diagram (dmn-js), instead of navigating to that table or expression, to run my own code / load my own component instead.

Any ideas ?

Thank you!

Hi :wave:

I think there are multiple ways to achieve that. One option could be to simply listen to the click event and then do whatever you want

eventBus.on("", function (context) {

    // do your stuff here

Source: dmn click - CodeSandbox

Another solution would be to override the Drilldown module with your custom implementation. E.g. shown in this codesandbox