iris-interoperability-template

Downloads99
Subscribe
807
Bookmark
2
This application is supported by InterSystems Corporation.
Details
Releases
Reviews
Issues

What's new in this version

Fixed source control. Now it works automatically immediately after image building.
Because of do ##class(%Studio.SourceControl.Interface).SourceControlClassSet("SourceControl.Git.Extension") in
https://github.com/intersystems-community/iris-interoperability-template/blob/8fb65436a89d65728c9acd7b5f3f35c4d89d0330/iris.script
Credit to Timothy Leavitt

Gitter Quality Gate Status Reliability Rating

iris-interoperability-template

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.

What The Sample Does

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. Screenshot 2020-10-29 at 19 33 14

The production has a business process with a rule, which filters on news that mentions cats and dogs. The business process then sends this data to a business operation which either saves data to a source folder /output/Dog.txt or /output/Cat.txt. Screenshot 2020-10-29 at 19 38 58

Prerequisites

Make sure you have git and Docker desktop installed.

Installation: ZPM

Open IRIS Namespace with Interoperability Enabled. Open Terminal and call: USER>zpm "install interoperability-sample"

Installation: Docker

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
  1. Run the IRIS container with your project:
$ docker-compose up -d

How to Run the Sample

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. Screenshot 2020-10-29 at 20 05 34

How to alter the template

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 the ObjectScript plugin. Install VSCode, Docker and ObjectScript plugin and open the folder in VSCode.

Use the handy VSCode menu to access the production and business rule editor and run a terminal: Screenshot 2020-10-29 at 20 15 56

IPM installation
zpm "install interoperability-sample"
Rating
4.5 (2)
ObjectScript quality test
Passed
Updated on 01 April 2023
ObjectScript quality report
Category
Template
Works with
InterSystems IRISInterSystems IRIS for Health
Tags
Info
Version
0.1.1
Last updated
2023-02-12
Repository
Open
Documentation
Open
License
Link