sap_orchestrator/script_runner library

Functions

runScriptSafely<T>(Map<String, dynamic> msg, Future<T> fn(GuiSession session, dynamic args)) Future<void>
Safe entrypoint wrapper. Always sends a response back to the orchestrator.
useSapSession<T>(int rootHandle, int sessionIndex, Future<T> fn(GuiSession)) Future<T>
Use the pre-connected SAP root rootHandle to access session sessionIndex and run fn with it. Does NOT call SapObject.connect() — reuses the main isolate's COM connection.