Start a saved workflow when a database poll produces matching events.
Inputs and outputs
Inputs
| Connector | Type | Required |
|---|---|---|
Registration Name | text | Yes |
Filter | record | Yes |
Expires In Milliseconds | number | No |
Outputs
| Connector | Type |
|---|---|
Registration | record |
Triggered | boolean |
Payload | any |
Filter settings
Connect Filter as one plain record. Unknown fields are rejected.
| Setting | Type | Required | Meaning |
|---|---|---|---|
driver | text | Yes | postgres or mysql. |
connectionStringEnvironmentVariable | text | Yes | Name of the environment variable containing the connection string. |
query | text | Yes | Read query returning rows to inspect. |
intervalMs | integer | No | Polling interval from 1000 through 86400000 ms; defaults to 60000. |
keyField | text | No | Unique row field; defaults to id. |
What the block does
On the first valid execution, Nodestly stores the registration durably and the installed add-on starts its own listener. A matching event starts the exact same saved workflow revision. The registration run returns Triggered=false and Payload=null; the delivery run returns Triggered=true with the received Payload. The listener is stopped cleanly when disabled or on shutdown.
Errors and recovery
Missing connectors, unknown Filter fields, invalid bounds, relative file paths, invalid routes or URLs, and missing environment variables stop the block with a clear message and correction. An occupied webhook port, unreachable email/database/queue service, and a failed HTTP request are reported separately. Correct the named setting, make the local path or endpoint reachable, and run the workflow again. If a required component is still missing after Nodestly finishes workflow preparation, update Nodestly and the add-on, restart the app, and run the same saved workflow again. If it continues, report the highlighted block as a product defect.
If every documented connector and setting is correct but the block reports an invalid result, update Nodestly and this official add-on, restart Nodestly, and try again. If it still fails, report the highlighted block as a product defect.
Example workflow
Configure filter with your database driver, the environment-variable name for its connection string, a read query returning event IDs and payloads, and intervalMs of 60000 for a one-minute poll. Connect triggered to a Boolean branch. Registration returns false with a null payload. A matching delivery starts a new run with triggered true.
Read the receipt
After registration, registration contains registrationId, status ('active') and expiresAtEpochMs (expiry in milliseconds since the Unix epoch). On that run, triggered is false and payload is null. When a delivered event starts a later run, triggered is true and the next block reads the event from payload. The registration output for that run contains consumed: true and the same payload.
