flypiggyyoyoyo opened a new issue, #867:
URL: https://github.com/apache/incubator-seata-go/issues/867

   <!-- Please only use this template for submitting enhancement requests -->
   
   **What would you like to be added**:
   
   * The `ScriptInvokerManager` and `ScriptInvoker` interfaces lack core method 
definitions (e.g., script execution, type management), making it impossible to 
register and schedule script engines.
   * There are no implementations of executors for mainstream scripting 
languages (such as JavaScript and Groovy), failing to meet business needs for 
dynamically processing logic through scripts.
   * Incompatibility with the script functionality of the Java version affects 
the user experience when migrating from the Java version to the Go version.
   
   **Why is this needed**:
   
   In the current Go version of the Seata Saga framework, the 
`ScriptInvokerManager` and `ScriptInvoker` interfaces under the `invoker` 
package are empty and lack practical implementations. 
   
   
   <img width="2880" height="1642" alt="Image" 
src="https://github.com/user-attachments/assets/eb32b922-2537-4e2d-9be4-2102347a64df";
 />
   
   
   This results in the framework being unable to support script parsing and 
execution capabilities. Compared to the Java version, which supports scripts 
(such as Groovy and JavaScript) through `ScriptEngineManager`, the Go version 
is limited in flexibility for complex business scenarios (e.g., dynamic 
condition judgment, parameter calculation relying on scripts).
   
   **Attention**:
   
   In Java, ScriptEngineManager is a component built into the standard library 
(the javax.script package). However, there is no similar "script engine 
management framework" in the Go standard library, so it needs to be designed 
and implemented by oneself.
   
   


-- 
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: notifications-unsubscr...@seata.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to