I hit halt in Iris lite terminal within VS Code and was exited out to PS prompt. I was just curious what the best way / recommended way to get back into an InterSystems lite terminal would be? Perhaps it is just to start a new InterSystems lite terminal from a the options listed previously in this post https://community.intersystems.com/post/how-run-objectscript-commands-v…. I was just curious if there was a way to kick it off again from the PS prompt?
If you like Java and have a thriving Java ecosystem at work into which you need to incorporate IRIS, it's not a problem. Java External Language Gateway will do it seamlessly, almost. This gateway serves as a bridge between Java and Object Script in IRIS. You can create objects of Java classes in IRIS and call their methods. You just need a jar file to do this.

Hey Community,
It's time for the new batch of #KeyQuestions from the previous month.
Here are the Key Questions of October chosen by InterSystems Experts within all Communities:
Hi guys,
Is it possible to apply business rule on a XML without Schema?
Say, I'm trying to make some business rules on FHIR XML payload. I transferred the XML stream as an EnsLib.EDI.XML.Document in a BPL and passed it to a General Business Rule.
Set context.xmlDocument = ##Class(EnsLib.EDI.XML.Document).ImportFromLibraryStream(##class(HS.SDA3.QuickStream).%OpenId(request.QuickStreamId)).png)
I'm handling following XML document
.png)
With this rule
.png)
Then I got stuck at visiting the elements in the XML.
.png)
I.e How may I evaluate the profile value?
Thanks。
Hi everyone,
I am new to "git-source-control", what i am doing so far will explain you in few steps.
1. installed git-source-control into a namsapace TEST using ZPM "install git-source-control"
2. configure the git settings and created a new mapping for as such
3. Now when I am trying to ADD a new file which is created for eg - NewFolder/impl.cls , getting an error like this
exporting new version of NewFolder.impl.cls to /Users/abc/workspace/NewFolder/impl.cls
No mapping with a matching path found for file NewFolder/impl.cls
ERROR #5001: Create Directory failed: _err
Here workspace is my git repo
Hey Community,
Here is a digest of the Developer Community videos on InterSystems Developers YouTube Channel in October 2024:
Throughout the forum, I find examples of using the method getSegmentByIndex to get the segment as I loop through the HL7 message segments.
Today I spent way too long trying to figure out why I could not modify the segment with this same method. I reached out to my more experienced team and I showed where I got the base code from what I was doing, but I myself could not find the documentation of the method.
After some time, we stumbled upon the GetMutableSegmentAt and GetSegmentAt methods and plugged the mutable method in its place and what do you know, it worked!
What is the purpose of the
Hi Community,
Play the new video on InterSystems Developers YouTube:
⏯ How to Fail with AI (and how to succeed!) @ Global Summit 2024
Thank you to everyone who joined our Spooky Stories Contest 👻 on Global Masters and shared your eerie tales with us! We loved diving into your mysterious, thrilling, and downright spooky stories. It was tough to pick just one winner, but we finally have a standout story to celebrate.
And the winners are...
Hi Guys,
I'm helping a partner to integrate IRIS to their project. They want to integrate Rules in there system.
For testing I built a simple rule as below:
/// Class Test.TestRule Extends Ens.Rule.Definition
{
Parameter RuleAssistClass = "Ens.Rule.GeneralBusinessRuleAssist";
XData RuleDefinition [ XMLNamespace = "http://www.intersystems.com/rule" ]
{
<ruleDefinition alias="" context="EnsLib.HL7.Service.Standard" production="">
<ruleSet name="" effectiveBegin="" effectiveEnd="">
<comment text="ForTest"></comment>
<assign property="a" value="1"></assign>
<return>1</return>We've got some web services that utilise EnsLib.SOAP.Service/EnsLib.REST.Service. These do some further requests to a few operations to call some other services and return the combined results.
An issue that we are noticing is that some of the usage involves users hitting the refresh button a few too many times and generating a lot of requests. This is mostly an issue when the service that the operations are calling are down or slow to respond. IRIS starts using a lot of RAM when this occurs and has caused outages by getting through an extra 50-60GB of RAM.
I'm looking at possible ways to help
I am developing a business operation that receives a request, creates a message with the data contained in it and sends it to an outlook email. For testing purposes both the sender and the destination are the same email account
This is the code:
ClassBO.AlertEmailSenderExtendsEns.BusinessOperation{
Has anyone successfully tested the new THROUGH command in IRIS 2024.2 with a FOREIGN SERVER?https://docs.intersystems.com/iris20242/csp/docbook/Doc.View.cls?KEY=RS…
I have connected from a Docker instance to a VM. I was able to successfully set up the JDBC connection through the UI.
.png)
I then configured a foreign server with this connection:.png)
But I am unable to send a SQL 'THROUGH' to the DB. I always get a:.png)
I've get the same message if i try it via Management Portal.
I've also tried this:.png)
and this.png)
Always with the same error.
Using the Basic template for InterSystems IRIS development environment with Docker: github
If I use the Dockerfile_mini file and COPY a backup, the file shows up.
COPY ./20241104_1448.cbk /home/irisowner/dev
ARG IMAGE=intersystemsdc/iris-community
FROM $IMAGE
WORKDIR /home/irisowner/dev
COPY ./20241104_1448.cbk /home/irisowner/dev
...However if I use the Dockerfile with the additional features, the file is copied (via logs) but not on the container filesystem.
Is this a bug?
Does anyone know any InterSystems partners in Canada? A colleague with experience in IRIS asked me about this.
Greetings.
I am working on a demand wheres i need to find all the possible combinations of number contained in a string, its works very well, but when the total numbers is increased bigger, the time to execute the code is increased exponentially. Theres a beter way to find combinations then recursively?
string data:
^x(1,1)="211405;211764;211841;211848;211851;212012;212483;212519;212572;212609;212962;213016;213020;213025;213076;213763;214543;216742;216766;217561;217564;217568;217588;219382;219385;219527;219703;219705;219888;219895;220181;220261;220273;220299;220485;220547;220587;220629;220649;220
Hello Community,
I have a stream property which uses %Stream.GlobalCharacter and I set some dummy texts like "a1a2a3a4a5a6a7...."(more than 1024 characters) in to that stream and the stream values are not compressed. However, The streams are compressed If I use the Lorem ipsum is a dummy or placeholder text or other text "This is part four of a long memo." which length is greater than 1024
I opened the stream object and confirmed the compress property is 0 for first entry and 1 for 2nd object
.png)
Class Samples.Strms Extends%Persistent
{
Property MyId As%String;Property MyBioStrm As%Stream.So being forced to use VSCode out of the box for a new Community install I've hit a small problem, documentation hasn't helped and its a simple problem.
How do I enable auto complete and the property viewer in creating a new .MAC?
So I've created "test.mac" and 'assume' can't remember the method name to open a file (for example), typing
"s f=##class(%Library.File). " in Studio would bring up the methods of %Library.File so I could click the appropriate one, VSCode does not do this (and also didn't show the classes under %Library).
Please don't reply telling me how to open a new file :-), I'm
Well, now we got noPWS container with IRIS, and how to connect to it, simply, without any durable sys or files, using normal peoples way like Environment variables?
version: "3"
services:
iris:
image: containers.intersystems.com/intersystems/iris:2023.2.0.227.0
ports:
- 1972:1972
volumes:
- ~/iris.key:/usr/irissys/mgr/iris.key
web:
image: containers.intersystems.com/intersystems/webgateway:2023.2.0.227.0
ports:
- 52773:80I've enabled the CallIn service (unauthenticated), but I'm still getting 'ImportError: IrisStart failed: IRIS_ACCESSDENIED (-15)'
Any clues?
Hi,
I want to list the source if a class in an 'iris session'.
I know I can get a list of all classes in a namespace:
iris session <session> -U "%SYS"
DO $SYSTEM.OBJ.ShowClasses()
===
Is there a similar sinmple command to get the source of a class?
Summary: if you concatenate filenames into /STDOUT and /STDERR in a $zf(-100) call, quote them.
I hit an <ILLEGAL VALUE> error from the following that initially stumped me. This was part of a unit test that worked perfectly fine on Windows, but when CI ran on Docker it failed:
Set outFile = ##class(%Library.File).TempFilename()
Set outDir = ##class(%Library.File).NormalizeDirectory(##class(%Library.File).TempFilename()_"dir-out")
Do##class(%Library.File).CreateDirectoryChain(outDir)
Do$$$AssertEquals($zf(-100,"/STDOUT="_outFile_"/STDERR="_outFile,"tar","-xvf",tempDir_".tgz","-C",outDir)The
I'm working on my first (!) IPM module and I'm a little puzzled with the registry authorization.
I have a working local registry (I hope!) and the module is loaded (with load-command) to the namespace.
Now publish-command fails because of missing authorization. I have set nothing authorization related myself and I'm lost how the authorization should be configured. All the material I have read so far seems to ignore that and only mentions one have to authenticate ...
Here's the command output:
zpm:IPMTEST1>version %SYS> zpm 0.7.3 IPMTEST1> zpm-registry 1.3.2
Hi Community!
We're happy to share the next video in the series dedicated to Gen AI on our InterSystems Developers YouTube:
⏯ Prompt before the prompt - third step of GenAI model training
I have a custom IPM resource processor like:
<Resource Name="example.json" ProcessorClass="OSEX.ipm.demo.IpmResourceProcessor" Foo="from manifest Resource attribute"/>
What is the best practice to deploy the custom resource processors to the IRIS instance? It can't be part of the module that uses it for obvious (?) chicken-egg situation.
My best idea atm is to put all those custom processors into a (library) module and all modules using any of them just have a dependency to the custom processors module.
In a Business Process (Ens.BusinessProcessBPL), how can you correctly call a classMethod?
I know we can call it in a block <code> :.png)
Or in a <assign>
.png)
Are there other ways and/or good practices?
Thanks
Corentin
Hello,
Please, we would need your help 🙂:
In a development environment, we have added quite a few presentation contexts to the DICOM configurations (the associations). We would need to find a way to export them from this environment to make it easier for us to import them in PRO (and avoid doing it by hand one by one).
We know that there is this method, the ImportAssociation(), that given a file, and the names of the local AET and the remote AET, creates it automatically:
https://docs.intersystems.com/irisforhealthlatest/csp/docbook/DocBook.U…
Hi Community, OpenAPI-Client Gen has just released, this is an application to create an IRIS Interoperability Production client from Swagger 2.0 specification. Instead of the existing tool ^%REST that creates a server-side REST application, OpenAPI-Client Gen creates a complete REST Interoperability Production client template.
Install by ZPM:
zpm "install openapi-client-gen"
How to generate production from Swagger document? It's very simple.
Open a terminal and execute:
Set sc = ##class(dc.openapi.client.Spec).generateApp(<applicationName>, <Your Swagger 2.0 document>>)
The first
I'm running a query, joining nine tables together. When I run it with a SELECT COUNT(*) I get about 200,000 rows. When I run the SELECT with the columns I want, I get about 2,700 rows. Is there something inherent with the queries that limits the result set size, or anything I can do to make sure I'm getting back all the results? Rather, than trying to run it about 100 times limiting all previously gotten accounts.

