Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-9996

Error is shown on the diagram viewer when selecting a node in the text editor

XMLWordPrintable

    • False
    • None
    • False
    • Hide
      1. Open a SWF workflow with at least 2 states
      2. Open the console and then clear all the messages printed
      3. On the text editor side, click on the declaration of any of the states in the workflow
      4. Look for the error in the console

       

      Actual Result

      • The selection operation generates errors in the console
      • If the node is not visible in the canvas due to the zoom level, the visible canvas area do not move in order to make the selected node visible

       

      Expected Result

      • The node must be selected
      • The operation do not generate errors in the console
      • If the node is not visible in the canvas due to the zoom level, the visible canvas area moves in order to  make the selected node visible
      Show
      Open a SWF workflow with at least 2 states Open the console and then clear all the messages printed On the text editor side, click on the declaration of any of the states in the workflow Look for the error in the console   Actual Result The selection operation generates errors in the console If the node is not visible in the canvas due to the zoom level, the visible canvas area do not move in order to make the selected node visible   Expected Result The node must be selected The operation do not generate errors in the console If the node is not visible in the canvas due to the zoom level, the visible canvas area moves in order to  make the selected node visible
    • ---
    • ---

      Error is shown on the diagram viewer when selecting a node in the text editor

      Note that if the selected node is not visible in the the canvas, the visible canvas area does not adjust itself to show the selected node.

      Despite the error, the node selection in the diagram viewer works correctly (see the attached video).

      org.kie.workbench.common.stunner.sw.KogitoSWEditor.js:980 Uncaught TypeError: Cannot read properties of undefined (reading 'wc')
          at bM (org.kie.workbench.common.stunner.sw.KogitoSWEditor.js:980:21)
          at Leb (org.kie.workbench.common.stunner.sw.KogitoSWEditor.js:1068:25)
          at Keb (org.kie.workbench.common.stunner.sw.KogitoSWEditor.js:1067:32)
          at d.uD (org.kie.workbench.common.stunner.sw.KogitoSWEditor.js:2015:451)
          at __webpack_modules__.../kie-bc-editors/dist/common/GwtEditorWrapper.js.GwtEditorWrapper.selectStateByName (GwtEditorWrapper.tsx:97:27)
          at __webpack_modules__.../serverless-workflow-diagram-editor-envelope/dist/envelope/ServerlessWorkflowDiagramEditorEnvelopeApiImpl.js.ServerlessWorkflowDiagramEditorEnvelopeApiImpl.kogitoSwfDiagramEditor__highlightNode (ServerlessWorkflowDiagramEditorEnvelopeApiImpl.ts:173:41)
          at __webpack_modules__.../envelope-bus/dist/common/EnvelopeBusMessageManager.js.EnvelopeBusMessageManager.receive (EnvelopeBusMessageManager.ts:337:24)
          at Object.receive (EnvelopeBusMessageManager.ts:111:14)
          at __webpack_modules__.../envelope-bus/dist/envelope/EnvelopeClient.js.EnvelopeClient.receive (EnvelopeClient.ts:102:27)
          at eventListener (EnvelopeClient.ts:58:47) 

              handreyrc Handrey Cunha
              gcaponet Guilherme Caponetto
              Tomas David Tomas David
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: