Skip to main content

MessagesUtil

MessagesUtil provides methods for surfacing messages to the user during workflow execution. It supports three severity levels: informational, warning, and error.

Methods

info(title: String, message: String): void

Logs an informational message.

@param title — The title of the message.

@param message — The message to log.

MessagesUtil.info("Export Complete", "The file was exported successfully.");

warn(title: String, message: String): void

Logs a warning message.

@param title — The title of the message.

@param message — The message to log.

MessagesUtil.warn("Missing Data", "Some rows were skipped due to missing values.");

error(title: String, message: String): void

Logs an error message.

@param title — The title of the message.

@param message — The message to log.

MessagesUtil.error("Connection Failed", "Unable to reach the database server.");