Overview
This node integrates with the Moleculer microservices framework, allowing users to perform operations such as calling actions, emitting events, or broadcasting messages within a Moleculer broker environment. It is useful for automating workflows that require interaction with Moleculer services, such as triggering remote service actions, sending events to services, or broadcasting messages to multiple services.
Use Case Examples
- Calling a Moleculer action to retrieve data from a microservice.
- Emitting an event to notify other services about a state change.
- Broadcasting a message to multiple services for synchronization purposes.
Output
JSON
json- The main output data from the Moleculer operation, including results from called actions or emitted events.pairedItemitem- Index of the input item that produced this output, useful for tracking data flow.
Dependencies
- Requires a Moleculer API key credential for authentication to the Moleculer broker.
Troubleshooting
- If the node fails to execute an operation, ensure the Moleculer API credentials are correctly configured and have the necessary permissions.
- Common errors may include network connectivity issues to the Moleculer broker or invalid action/event names; verify the broker URL and action/event names are correct.
- If continueOnFail is enabled, errors for individual items will be included in the output rather than stopping the workflow.