This is a template of InterSystems IRIS Interoperability solution. It contains a simple interoperablity solution which reads data from Reddit, filters it and outputs into file or sends via email.
This sample has an interoperability production with an inbound Reddit Adapter which is used by a Business Service to read data from Reddit.com. It reads from reddit.com/new/.json every 15 sec. You can alter both the URL and frequency in the service's settings.
The production has business pocess with the rule which fiters news which contains mentions of cats and dogs and sends this data into business operation which either saves into source folder /output/Dog.txt or /output/Cat.txt.
Make sure you have git and Docker desktop installed.
Open IRIS Namespace with Interoperability Enabled. Open Terminal and call: USER>zpm "install interoperability-sample"
Clone/git pull the repo into any local directory
$ git clone https://github.com/intersystems-community/iris-interoperability-template.git
Open the terminal in this directory and run:
$ docker-compose build
- Run the IRIS container with your project:
$ docker-compose up -d
Open the production and start it. It will start gathering news from reddit.com/new/ and filter it on cats and dogs into /output/Dog.txt or /output/Cat.txt files.
You can alter the business rule to filter for different words, or to use an email operation to send posts via email.
Use the green "Use this template" button on Github to copy files into a new repository and build a new IRIS interoperability solution using this one as an example.
This repository is ready to code in VSCode with ObjectScript plugin. Install VSCode, Docker and ObjectScript plugin and open the folder in VSCode.
Use handy VSCode menu to access production and business rule editor and run a terminal: