Globals
These are the global methods and properties that can be used in a C# script or function.
Properties
Variables
A Dictionary<string, object> of the Variables used in the flow
Logger
A Logger that exposes
| Method | Description |
|---|---|
| DLog(string) | Debug log message |
| ILog(string) | Information log message |
| WLog(string) | Warning log message |
| ELog(string) | Error log message |
Flow
This is the NodeParameters which is the main object passed to each and every flow element for execution. There are many helper methods in this object
Notification
Sends a notification to the FileFlows notifications, the bell in the top bar of the web console. If the web console is open when the notification is sent, it also pops up on screen.
| Method | Description |
|---|---|
| Info(string title, string? message) | Information notification |
| Success(string title, string? message) | Success notification |
| Warning(string title, string? message) | Warning notification |
| Error(string title, string? message) | Error notification |
The message is optional.
Notification.Warning("Disk space low", "Only 20 GB left on /media");
Methods
SendNotification
Sends a notification that will be shown in the web console. Using Notification is recommended instead.
Critical notifications are reserved for FileFlows itself, a critical severity is sent as an error.
Parameters
| Name | Type | Description |
|---|---|---|
severity | string | Either error, warning, or information |
title | string | The title of the nofication |
message | string | Optional message/body to go along with the notification |