This is an automated email from the ASF dual-hosted git repository.

tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git


The following commit(s) were added to refs/heads/main by this push:
     new e5d62f9636d NO-ISSUE: Enable Test Scenario Editor Classic 
compatibility with the new Test Scenario Editor (#3010)
e5d62f9636d is described below

commit e5d62f9636db2d5f22567d7645396e972515def9
Author: Yeser Amer <[email protected]>
AuthorDate: Thu Mar 20 15:30:59 2025 +0100

    NO-ISSUE: Enable Test Scenario Editor Classic compatibility with the new 
Test Scenario Editor (#3010)
---
 .../kogito/client/editor/ScenarioSimulationEditorKogitoWrapper.java     | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/packages/stunner-editors/drools-wb-screens/drools-wb-scenario-simulation-editor/drools-wb-scenario-simulation-editor-kogito-client/src/main/java/org/drools/workbench/screens/scenariosimulation/kogito/client/editor/ScenarioSimulationEditorKogitoWrapper.java
 
b/packages/stunner-editors/drools-wb-screens/drools-wb-scenario-simulation-editor/drools-wb-scenario-simulation-editor-kogito-client/src/main/java/org/drools/workbench/screens/scenariosimulation/kogito/client/editor/Scenari
 [...]
index 6e8d7e77e6a..749fc563fe2 100644
--- 
a/packages/stunner-editors/drools-wb-screens/drools-wb-scenario-simulation-editor/drools-wb-scenario-simulation-editor-kogito-client/src/main/java/org/drools/workbench/screens/scenariosimulation/kogito/client/editor/ScenarioSimulationEditorKogitoWrapper.java
+++ 
b/packages/stunner-editors/drools-wb-screens/drools-wb-scenario-simulation-editor/drools-wb-scenario-simulation-editor-kogito-client/src/main/java/org/drools/workbench/screens/scenariosimulation/kogito/client/editor/ScenarioSimulationEditorKogitoWrapper.java
@@ -381,6 +381,8 @@ public class ScenarioSimulationEditorKogitoWrapper extends 
MultiPageEditorContai
     }
 
     protected void unmarshallContent(String toUnmarshal) {
+        /* Removing the default namespace introduced in the new Test Scenario 
editor, that is incompatible with this unmarshaller implementation. */
+        toUnmarshal = 
toUnmarshal.replace("xmlns=\"https://kie.org/scesim/1.8\"";, "");
         SCESIMMainJs.unmarshall(toUnmarshal, SCESIM, 
getJSInteropUnmarshallCallback());
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to