DMN-JS Rules highlighting

Good evening!!!

I am trying to extend dmn-js for rules highlighting feature (features/decision-highlight). The idea is for this feature is to receive (from the host application) a data object which will contain the rule-id and use that to highlight the required row. I created a module features/decision-highlight that contains DecisionHighlightEditorActions.js which is included as a dependency in features/decision-rule module (this is just the layout and the feature is not coded yet)

I get the following error when running the test,

ERROR: ‘Failed to instantiate component’
ERROR: 'Error: No provider for “commandStack”! (Resolving: editorActions -> commandStack)

I am guessing this is something to do with how i am wring this new module into the current reference tree…

Here is the forked repo with my commit

Any help is greatly appreciated…

1 Like

Are you looking for something like this?
https://camunda.com/dmn/simulator
(Go to Decistion table view, enter some data and click simulate —> it highlights the rows that are matched)

Yes Mallesh, something very similar to that.