Details
Description
Environment (Required on creation):
- Tomcat + H2
- 7.16.0-alpha5-ee
- Chrome 93.0.4577.82 on macOS
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
- DMN table on decision instance view shows never-ending loading spinner
- An error is shown in the browser console
TypeError: Cannot read properties of undefined (reading 'appendChild')
Steps to reproduce (Required on creation):
- Deploy a DMN decision with a DMN table to the engine
- Evaluate the decision
- In Cockpit, open the decision instance view
Observed Behavior (Required on creation):
- A never-ending loading spinner overlays the DMN Table.
- An error is shown in the browser console.
Expected behavior (Required on creation):
- The loading spinner is hidden as soon as the DMN Table has been loaded.
- No error is shown in the browser console.
Root Cause (Required on prioritization):
- The table is already rendered before the decision definition request returned and $scope.decisionDefinition
- The decision-table directive is rendered with an empty table property
- In the cam-widget-dmn-viewer directive we assume that a diagram is a DRD if $scope.table is falsy
- This leads to calling $scope.initializeTablePlugins() even though the a DMN table diagram does not exist
Solution Ideas (Optional):
The cam-widget-dmn-viewer already registers a watcher if the table name is empty or undefined to open the diagram again if the table name changes [1]. However, we also need to skip calling the onLoad callback when the table name is empty.
Hints (optional):
mgm-controller-panel
This is the controller panel for Smart Panels app
Attachments
Issue Links
- is depended on by
-
CAM-13899 Request the new license book
- Closed