Event Bus Trigger

messaging · A014 · starter-package 7.0.1

Handle events published to a selected channel and topic.

Inputs and outputs

Inputs

ConnectorTypeRequired
Registration NametextYes
FilterrecordYes
Expires In MillisecondsnumberNo

Outputs

ConnectorType
Registrationrecord
Triggeredboolean
Payloadany

Filter settings

Connect Filter as one plain record. Unknown fields are rejected.

SettingTypeRequiredMeaning
channeltextYesLocal BroadcastChannel name.
topictextYesExact event topic.

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

Connect {"channel":"nodestly-events","topic":"customer.updated"} to filter. When a matching event is delivered, read the customer's data from payload. 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.