Interface ScriptEventListener
public interface ScriptEventListener
Interface for receiving script execution events.
Implementations can use these events to update the UI or log execution progress.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ScriptEventListenerA no-op implementation of ScriptEventListener. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidCalled when a script logs a message (via Print node).voidonNodeCompleted(String nodeId, Map<String, NodeValue> outputs) Called when a node completes execution successfully.voidonNodeError(String nodeId, String error) Called when a node encounters an error during execution.voidonNodeStarted(String nodeId) Called when a node starts executing.voidCalled when the script execution is cancelled.voidonScriptCompleted(boolean success) Called when the entire script completes execution.
-
Field Details
-
NOOP
A no-op implementation of ScriptEventListener.
-
-
Method Details
-
onNodeStarted
Called when a node starts executing.- Parameters:
nodeId- the unique identifier of the node
-
onNodeCompleted
-
onNodeError
-
onScriptCompleted
void onScriptCompleted(boolean success) Called when the entire script completes execution.- Parameters:
success- true if the script completed without errors
-
onScriptCancelled
void onScriptCancelled()Called when the script execution is cancelled. -
onLog
-