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):
This is the controller panel for Smart Panels app
[CAM-13950] DMN table on decision instance view shows never-ending loading spinner
Description |
Original:
h3. Environment (Required on creation):
Tomcat 7.16.0-alpha4-ee Chrome on macOS h3. 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 {code}TypeError: Cannot read properties of undefined (reading 'appendChild'){code} !image-2021-09-20-17-26-28-485.png|thumbnail! h3. 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 h3. Observed Behavior (Required on creation): * A never-ending loading spinner overlays the DMN Table. * An error is shown in the browser console. h3. 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. h3. Root Cause (Required on prioritization): h3. Solution Ideas (Optional): h3. Hints (optional): |
New:
h3. Environment (Required on creation):
Tomcat 7.16.0-alpha4-ee Chrome on macOS h3. 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 {code}TypeError: Cannot read properties of undefined (reading 'appendChild'){code} * See !image-2021-09-20-17-26-28-485.png|thumbnail! h3. 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 h3. Observed Behavior (Required on creation): * A never-ending loading spinner overlays the DMN Table. * An error is shown in the browser console. h3. 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. h3. Root Cause (Required on prioritization): h3. Solution Ideas (Optional): h3. Hints (optional): |
Mentioned Roles |
Mentioned Groups |
Description |
Original:
h3. Environment (Required on creation):
Tomcat 7.16.0-alpha4-ee Chrome on macOS h3. 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 {code}TypeError: Cannot read properties of undefined (reading 'appendChild'){code} * See !image-2021-09-20-17-26-28-485.png|thumbnail! h3. 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 h3. Observed Behavior (Required on creation): * A never-ending loading spinner overlays the DMN Table. * An error is shown in the browser console. h3. 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. h3. Root Cause (Required on prioritization): h3. Solution Ideas (Optional): h3. Hints (optional): |
New:
h3. Environment (Required on creation):
Tomcat 7.16.0-alpha4-ee Chrome on macOS h3. 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 {code}TypeError: Cannot read properties of undefined (reading 'appendChild'){code} * See the screenshot below !image-2021-09-20-17-26-28-485.png|thumbnail! h3. 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 h3. Observed Behavior (Required on creation): * A never-ending loading spinner overlays the DMN Table. * An error is shown in the browser console. h3. 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. h3. Root Cause (Required on prioritization): h3. Solution Ideas (Optional): h3. Hints (optional): |
Mentioned Roles |
Mentioned Groups |
Affects Version/s | New: 7.16.0-alpha5 [ 17098 ] |
Assignee | New: Tassilo Weidner [ tassilo.weidner ] |
Assignee | Original: Tassilo Weidner [ tassilo.weidner ] | New: Thorben Lindhauer [ thorben.lindhauer ] |
Mentioned Roles |