Event Generate
Introduction
Catalyst enables you to generate sample payloads from various event sources supported by Catalyst Event Listeners using the CLI.
There are two types of Catalyst event listeners: the Catalyst component event listener that listens for a specific event in a Catalyst component, and custom event listeners that listen for the invocation of a custom URL. In both cases, the associated Event function is triggered upon the event occurrence, and a stream of data from the event source is passed to it. You can learn more about this from the Event Listeners help page .
The catalyst event:generate command generates sample payloads for both component and custom event listeners in the CLI. You can specify the particular source and the action that you require the payload for. You can use the generated payload to test the Event functions in your project from the local environment.
In addition to Event functions, you can also generate sample payloads and test the Integration functions in your project. The catalyst event:generate:integ command enables you to select the integration service, component source, and handler to generate the payload for.
You can then launch a Node shell from the CLI to test and debug the Event or Integration function, by passing the generated sample payload data to the function.
Last Updated 2023-04-20 21:06:11 +0530 +0530
Yes
No
Send your feedback to us