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 f4ef26380b1 kie-issues#2095: DMN Editor: Decision Data Type is lost 
when selecting a Conditional, Filter or Iteration expression (#3276)
f4ef26380b1 is described below

commit f4ef26380b1f039a39753f3cbdd74e7c8766b4f6
Author: Luiz João Motta <[email protected]>
AuthorDate: Thu Sep 11 11:53:41 2025 -0300

    kie-issues#2095: DMN Editor: Decision Data Type is lost when selecting a 
Conditional, Filter or Iteration expression (#3276)
---
 .../dmn-editor/src/boxedExpressions/getDefaultBoxedExpression.tsx    | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/packages/dmn-editor/src/boxedExpressions/getDefaultBoxedExpression.tsx 
b/packages/dmn-editor/src/boxedExpressions/getDefaultBoxedExpression.tsx
index e6babb7717a..ac8bd8754c7 100644
--- a/packages/dmn-editor/src/boxedExpressions/getDefaultBoxedExpression.tsx
+++ b/packages/dmn-editor/src/boxedExpressions/getDefaultBoxedExpression.tsx
@@ -322,6 +322,7 @@ export function getDefaultBoxedExpression({
     const conditionalExpression: Normalized<BoxedConditional> = {
       "@_id": generateUuid(),
       __$$element: "conditional",
+      "@_typeRef": typeRef,
       if: {
         "@_id": generateUuid(),
         expression: undefined as any,
@@ -341,6 +342,7 @@ export function getDefaultBoxedExpression({
     const forExpression: Normalized<BoxedFor> = {
       "@_id": generateUuid(),
       __$$element: "for",
+      "@_typeRef": typeRef,
       return: {
         "@_id": generateUuid(),
         expression: undefined as any,
@@ -355,6 +357,7 @@ export function getDefaultBoxedExpression({
     const someExpression: Normalized<BoxedSome> = {
       "@_id": generateUuid(),
       __$$element: "some",
+      "@_typeRef": typeRef,
       satisfies: {
         "@_id": generateUuid(),
         expression: undefined as any,
@@ -369,6 +372,7 @@ export function getDefaultBoxedExpression({
     const everyExpression: Normalized<BoxedEvery> = {
       "@_id": generateUuid(),
       __$$element: "every",
+      "@_typeRef": typeRef,
       satisfies: {
         "@_id": generateUuid(),
         expression: undefined as any,
@@ -383,6 +387,7 @@ export function getDefaultBoxedExpression({
     const filterExpression: Normalized<BoxedFilter> = {
       "@_id": generateUuid(),
       __$$element: "filter",
+      "@_typeRef": typeRef,
       match: {
         "@_id": generateUuid(),
         expression: undefined as any,


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

Reply via email to