Get Started with Groovy
Groovy plugins allow you to extend 1Gateway with custom logic when standard plugins are not sufficient. They are most used to integrate external systems, retrieve data on a schedule, or process messages in a custom way.
This guide walks through a simple but complete example:
- A Groovy poller that retrieves weather data from a REST API
- A Groovy sender that forwards the retrieved data to an external endpoint
Together, these demonstrate how data can flow into and out of 1Gateway using Groovy.
Download Resources
Download the sample configuration files to follow along with this guide: groovy_start.zip. To use these files, upload the ZIP file to your 1Gateway instance. Follow the instructions found in the Installation Files Guide.
Step 1: Creating a Groovy Poller
The Groovy poller runs on a configured interval. It retrieves data from an external system and publishes it into 1Gateway as messages.
