rajalakshmys-27 opened a new pull request, #3578:
URL: https://github.com/apache/incubator-kie-tools/pull/3578

   Closes: 
[kie-issues#2304](https://github.com/apache/incubator-kie-issues/issues/2304)
   
   ### Root Cause
   When adding on-entry/on-exit scripts to user tasks or editing script tasks, 
the `scriptFormat` attribute was being initialized with an empty string instead 
of the proper format URI. This occurred because the code was hardcoding `""` as 
the default value when creating new script elements.
   
   ### Fix
   - Created a centralized mapping of script language names to their 
corresponding format URIs
   - Implemented a helper function to retrieve the correct format URI based on 
the language
   - Updated script initialization logic to use the proper format URI 
(defaulting to Java format) instead of empty strings
   - Applied the fix to on-entry scripts, on-exit scripts, and script task 
properties
   
   This ensures that generated XML contains valid `scriptFormat` attributes, 
preventing compilation failures.


-- 
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