Home Applications iris-ipc-utils

iris-ipc-utils

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
5
1 reviews
0
Awards
111
Views
1
IPM installs
1
0
Details
Releases
Reviews
Issues
Pull requests
Articles
Inter-process communication example with $SYSTEM.Event

What's new in this version

Initial Release

Gitter
Quality Gate Status
Reliability Rating

License: MIT

observer-pattern

Description

This is an example of $SYSTEM.Event usage.

A DC article is availalbe in FR here and EN soon.

Installation

Clone/git pull the repo into any local directory

$ git clone https://github.com/lscalese/iris-ipc-utils.git
$ docker-compose up -d

Usage

With a listener

Open a terminal a start to listen the event “Demo”

IRISAPP>Do ##class(dc.ipcutils.BasicListener).%New().Listen()

Open a second terminal to send a notification :

Do ##class(dc.ipcutils.Manager).Notify("Demo:OnTest",{"Message":"My FirstTest"}.%ToJSON())

Now you see the result in the first terminal:

IRISAPP>Do ##class(dc.observer.BasicListener).%New().Listen()

2023-09-27 20:43:46 + Listening Demo with resourcename ODYzMjAxNTAwNTAwMQ started.
2023-09-27 20:43:46 + Type < ctrl+c > to stop listening.
2023-09-27 20:45:58 = Event received:
{
"Event":"Demo:OnTest",
"EventType":"Demo",
"EventName":"OnTest",
"PIDSource":"710",
"Timestamp":"2023-09-27 20:45:58",
"Context":{
},
"Data":"{"Message":"My FirstTest"}"
}

Read more
Made with
Install
zpm install ipc-utils download archive
Version
1.0.009 Nov, 2023
ObjectScript quality test
Category
Technology Example
Works with
InterSystems IRIS
First published
09 Nov, 2023
Last checked by moderator
15 Jan, 2024Works