jomarko commented on issue #2821:
URL: 
https://github.com/apache/incubator-kie-tools/issues/2821#issuecomment-2553035153

   Thank you for reporting the issue, my guess from reading the logs is problem 
is somewhere in `JavaFunctionExpression`, but it is just a tip.
   
   ```
   const onCellUpdates = useCallback(
       (cellUpdates: BeeTableCellUpdate<JAVA_ROWTYPE>[]) => {
         for (const u of cellUpdates) {
           const context: Normalized<DMN15__tContext> = 
functionExpression.expression!;
   
           const clazz = getClassContextEntry(context) ?? {
             "@_id": generateUuid(),
             expression: {
               __$$element: "literalExpression",
               "@_id": generateUuid(),
               text: { __$$text: "" },
             },
             variable: {
               "@_id": generateUuid(),
               "@_name": "class",
             },
           };
           const method = getVariableContextEntry(context) ?? {
             "@_id": generateUuid(),
             expression: {
               __$$element: "literalExpression",
               "@_id": generateUuid(),
               text: { __$$text: "" },
             },
             variable: {
               "@_id": generateUuid(),
               "@_name": "method signature",
             },
           };
   
           // Class
           if (u.rowIndex === 0) {
             setExpression((prev: Normalized<BoxedFunctionJava>) => {
               clazz.expression = {
                 ...clazz.expression,
                 __$$element: "literalExpression",
                 text: {
                   __$$text: u.value,
                 },
               };
   
               // Do not inline this variable for type safety. See 
https://github.com/microsoft/TypeScript/issues/241
               const ret: Normalized<BoxedFunction> = {
                 ...prev,
                 expression: {
                   __$$element: "context",
                   ...context,
                   contextEntry: [clazz, method],
                 },
               };
   
               return ret;
             });
           }
           // Method
           else if (u.rowIndex === 1) {
             setExpression((prev: Normalized<BoxedFunctionJava>) => {
               method.expression = {
                 ...method.expression,
                 __$$element: "literalExpression",
                 "@_id": method.expression["@_id"] ?? generateUuid(),
                 text: {
                   __$$text: u.value,
                 },
               };
   
               // Do not inline this variable for type safety. See 
https://github.com/microsoft/TypeScript/issues/241
               const ret: Normalized<BoxedFunction> = {
                 ...prev,
                 expression: {
                   __$$element: "context",
                   ...context,
                   contextEntry: [clazz, method],
                 },
               };
               return ret;
             });
           }
         }
       },
       [functionExpression.expression, getClassContextEntry, 
getVariableContextEntry, setExpression]
     );
     ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to