You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "ljmotta (via GitHub)" <gi...@apache.org> on 2026/02/11 01:23:59 UTC
[PR] kie-issues-2243: KIE Sandbox: DMN Runner inputs should be renamed when InputData nodes are renamed in the DMN model [incubator-kie-tools]
ljmotta opened a new pull request, #3437:
URL: https://github.com/apache/incubator-kie-tools/pull/3437
Closes https://github.com/apache/incubator-kie-issues/issues/2243
Closes https://github.com/apache/incubator-kie-issues/issues/2242
## On this PR
- Renaming the InputData will update the DMN Runner form/table without losing the inputs
- Renaming a property will update the DMN Runner form/table without losing the inputs
- Updating the enum will update the DMN Runner form/table
- Fix a bug on DMN Editor where constraints using "allowedValues" weren't updated accordingly. DMN 1.5 spec states that enums should be defined through "typeConstraint" attribute, so even updating an enum that uses the deprecated property "allowedValues" would create this new attribute. With an outdated "allowedValues" and an updated "typeConstraint" attribute, the Open API Schema of the DMN would have a merge between both attributes (old + new). This PR fixes this and updates "allowedValues".
---
## Before
### Renaming Input Data nodes
Uploading Screen Recording 2026-02-10 at 22.19.15.mov…
### Updating enums
https://github.com/user-attachments/assets/10f88dc2-8cb6-4004-8654-20cc55ad56e5
## After
### Renaming Input Data nodes
https://github.com/user-attachments/assets/1fb24045-5f00-46bf-b744-cc3ecf91a1cb
### Updating enums
https://github.com/user-attachments/assets/0480b5df-92fe-4db4-8a0c-17687a00ed63
https://github.com/user-attachments/assets/4ae99995-1b6e-43c3-abf5-18a97615e429
---
Enum.dmn file:
[Enum.dmn.txt](https://github.com/user-attachments/files/25222977/Enum.dmn.txt)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] kie-issues-2243: KIE Sandbox: DMN Runner inputs should be renamed when InputData nodes are renamed in the DMN model [incubator-kie-tools]
Posted by "ljmotta (via GitHub)" <gi...@apache.org>.
ljmotta commented on PR #3437:
URL: https://github.com/apache/incubator-kie-tools/pull/3437#issuecomment-3896914169
@jomarko Thanks for your review. The DMN must be valid before the DMN Runner form is updated. By using the "Just rename" option, the Decision node will not be updated, making this an invalid DMN.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] kie-issues-2243: KIE Sandbox: DMN Runner inputs should be renamed when InputData nodes are renamed in the DMN model [incubator-kie-tools]
Posted by "ljmotta (via GitHub)" <gi...@apache.org>.
ljmotta commented on code in PR #3437:
URL: https://github.com/apache/incubator-kie-tools/pull/3437#discussion_r2824520710
##########
packages/dmn-editor-standalone/tests-e2e/__fixtures__/prettier.ts:
##########
@@ -0,0 +1,20 @@
+import * as prettier from "prettier";
+import xmlPlugin from "@prettier/plugin-xml";
+
+// Prettier loads configuration files using dynamic `import()` calls inside `prettier.resolveConfig()`.
+// However, when Playwright detects the use of `__dirname`, it opts into its CommonJS-based test runner
+// (see https://github.com/microsoft/playwright/issues/37890).
Review Comment:
To use `import.meta.dirname` we would need to include `"type": "module"` into the `package.json`, which would lead to other problems. For example we would require to add the type `module` in several other pacakges.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] kie-issues-2243: KIE Sandbox: DMN Runner inputs should be renamed when InputData nodes are renamed in the DMN model [incubator-kie-tools]
Posted by "ljmotta (via GitHub)" <gi...@apache.org>.
ljmotta commented on code in PR #3437:
URL: https://github.com/apache/incubator-kie-tools/pull/3437#discussion_r2824520710
##########
packages/dmn-editor-standalone/tests-e2e/__fixtures__/prettier.ts:
##########
@@ -0,0 +1,20 @@
+import * as prettier from "prettier";
+import xmlPlugin from "@prettier/plugin-xml";
+
+// Prettier loads configuration files using dynamic `import()` calls inside `prettier.resolveConfig()`.
+// However, when Playwright detects the use of `__dirname`, it opts into its CommonJS-based test runner
+// (see https://github.com/microsoft/playwright/issues/37890).
Review Comment:
To use `import.meta.dirname` we would need to include `"type": "module"` into the `package.json`, which would lead to other problems. For example we would require to add the type `module` in several other packages that are used by `dmn-editor-standalone`. Also, it would require to add the file extension into the imports.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] kie-issues-2243: KIE Sandbox: DMN Runner inputs should be renamed when InputData nodes are renamed in the DMN model [incubator-kie-tools]
Posted by "ljmotta (via GitHub)" <gi...@apache.org>.
ljmotta commented on code in PR #3437:
URL: https://github.com/apache/incubator-kie-tools/pull/3437#discussion_r2824520710
##########
packages/dmn-editor-standalone/tests-e2e/__fixtures__/prettier.ts:
##########
@@ -0,0 +1,20 @@
+import * as prettier from "prettier";
+import xmlPlugin from "@prettier/plugin-xml";
+
+// Prettier loads configuration files using dynamic `import()` calls inside `prettier.resolveConfig()`.
+// However, when Playwright detects the use of `__dirname`, it opts into its CommonJS-based test runner
+// (see https://github.com/microsoft/playwright/issues/37890).
Review Comment:
To use `import.meta.dirname` we would need to include `"type": "module"` into the `package.json`, which would lead to other problems. For example we would require to add the type `module` in several other packages that are used by `dmn-editor-standalone`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] kie-issues-2243: KIE Sandbox: DMN Runner inputs should be renamed when InputData nodes are renamed in the DMN model [incubator-kie-tools]
Posted by "ljmotta (via GitHub)" <gi...@apache.org>.
ljmotta merged PR #3437:
URL: https://github.com/apache/incubator-kie-tools/pull/3437
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [PR] kie-issues-2243: KIE Sandbox: DMN Runner inputs should be renamed when InputData nodes are renamed in the DMN model [incubator-kie-tools]
Posted by "thiagoelg (via GitHub)" <gi...@apache.org>.
thiagoelg commented on code in PR #3437:
URL: https://github.com/apache/incubator-kie-tools/pull/3437#discussion_r2814703920
##########
packages/dmn-editor-standalone/tests-e2e/__fixtures__/prettier.ts:
##########
@@ -0,0 +1,20 @@
+import * as prettier from "prettier";
+import xmlPlugin from "@prettier/plugin-xml";
+
+// Prettier loads configuration files using dynamic `import()` calls inside `prettier.resolveConfig()`.
+// However, when Playwright detects the use of `__dirname`, it opts into its CommonJS-based test runner
+// (see https://github.com/microsoft/playwright/issues/37890).
Review Comment:
If that's the case, can't we just replace `__dirname` with `import.meta.dirname`?
See https://nodejs.org/api/esm.html#importmetadirname
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org