Question Oliver Wilms · Oct 17, 2024 Can I add Dynamic Object or Iterator to BPL Context? I have a BPL iterating over Dynamic arrays. Can I add Dynamic Array (%Dynamic Abstract Object) and also %Iterator.Array to BPL context? I tried and I see Error: %AddToSaveSet method does not exist for %Iterator.Array #Business Process (BPL) #HealthShare #Ensemble #Health Connect #InterSystems IRIS 0 1 0 200
Question Oliver Wilms · Oct 12, 2024 Error when I want to build image: sudo: unable to allocate pty: Operation not permitted What is the reason for RUN apt-get update && apt-get install -y \ git \ nano \ python3-opencv \ sudo && \ /bin/echo -e ${ISC_PACKAGE_MGRUSER}\\tALL=\(ALL\)\\tNOPASSWD: ALL >> /etc/sudoers && \ sudo -u ${ISC_PACKAGE_MGRUSER} sudo echo enabled passwordless sudo-ing for ${ISC_PACKAGE_MGRUSER} I think I get error because I do not have sudo privilege in the environment where I use podman to build the image podman build --tag oliver3 . #Git #Ubuntu #Open Exchange 0 0 0 219
Question Oliver Wilms · Oct 3, 2024 Create - and use - custom setting in BPL I try to add custom setting in BPL process by adding parameter SETTINGS = "Scope" and property Scope As %String. But how do I access instance property in BPL process? I get error that method or property Scope is not found. #InterSystems IRIS for Health #Ensemble 0 2 0 198
Question Oliver Wilms · Sep 28, 2024 This site can’t be reached - trying out iris-DataViz I want to try out iris-DataViz app to visualize my own data. I cloned the repo and docker-compose up -d in AWS. IRIS portal works, but on port 8051 I get nothing. I checked my AWS security groups. I reversed IRIS webserver port and 8051 and I can connect to Management portal using port 8051. I don't understand what is refusing connection on port 8051 running in iris-DataViz container. #AWS #Docker #Management Portal #Security #InterSystems IRIS 0 1 0 136
Question Oliver Wilms · Sep 19, 2024 Input Redirection Hello, I try to develop a REST interface where I need to interact with legacy MUMPS routines. How can I pass in input to a Read without modifying the legacy code? I think in linux I can execute command < inputfile to read from file, but how does it work in ObjectScript? #ObjectScript #InterSystems IRIS 0 7 0 316
Question Oliver Wilms · Aug 29, 2024 Create PDF and transfer it via REST Hello, I want to create PDF from HTML source. I found pandoc. I installed pandoc on IRIS container image. I created Interoperability production. I have setup REST service to receive HTML file in request body. I call pandoc command pandoc -o output.pdf input.html from a BPL process. I copy output.pdf file stream into response body. I save the response at the source. I get a file named output.pdf but it does not load in Acrobat. I suspect I am doing something wrong with headers (accept-encoding?) or maybe do I need to base64 encode the pdf file to transfer it via REST? #HTML #Interoperability #REST API #InterSystems IRIS 0 7 0 319
Question Oliver Wilms · Jun 24, 2024 <STRINGSTACK> Error I am updating a large JSON Dynamic Object. Inserting three streams using Do obj.%Set("data",pStream,"stream>base64"). Maybe I am calling Iterate() too often? #JSON #InterSystems IRIS 0 2 0 218
Question Oliver Wilms · Jun 23, 2024 Long JSON values I have JSON object which contains file references. I need to replace the file reference with base64 encoded file which is up to 10MB. I tried the following but it did not work as expected: #JSON #InterSystems IRIS 0 9 0 214
Question Oliver Wilms · Jun 23, 2024 Long JSON Error {}.%FromJSONFile(file) I am working on JSON and want to be prepared to handle large Objects. I try this code: ClassMethod MaxLen() As %Status { set longStr="" for i=1:1:$SYSTEM.SYS.MaxLocalLength() { set longStr = longStr_"x" } write "Maximum string length = "_$LENGTH(longStr) ; set longObject = {"a":(longStr),"b":(longStr)} set file=##class(%File).%New("/tmp/longObjectFile.txt") do file.Open("WSN") do longObject.%ToJSON(file) do file.Close() ; do file.Open("RS") #JSON #InterSystems IRIS 0 5 0 356
Question Oliver Wilms · Jun 22, 2024 Base64 encode Word document Hello. I was asked to base64-encode files such as Word documents (which contain images) and then post them to a Jira server. I found code to base64 encode a file here: https://community.intersystems.com/post/encoding-base64-stream-chunk-siz... It seemed to work, but when someone tried to open the Word document, the images inside could not be displayed. #InterSystems IRIS 0 3 0 560
Question Oliver Wilms · Mar 10, 2024 How to show connections in Production Configuration screen for HL7 Router Hello, I created HL7 router Extends Ens.Rule.Definition. When I click the dot to the left, it does not draw lines to targets. I tried to add ClassMethod OnGetConnections(), but it does not get executed. #InterSystems IRIS for Health 0 1 0 200
Article Oliver Wilms · Feb 3, 2024 2m read My first real use case for Embedded Python The architect of the JSON schema (MS) asked if IRIS could perform schema validation. I asked on Discord objectscript channel how we could validate a Dynamic Object against a JSON schema. Dmitry Maslennikov replied that probably the easiest way would be to use python, but it would require converting ObjectScript JSON to Python dict. #Embedded Python #JSON #InterSystems IRIS for Health Open Exchange app 4 0 1 296
Article Oliver Wilms · Jan 31, 2024 2m read What is iris-hl7? An App that converts HL7 messages to JSON objects. About a year ago I started a GitHub repo for collecting stuff related to HL7. Recently my team added an HL7 interface to our Interoperability Production and we were asked to persist HL7 messages. We created a Kafka topic to receive HL7 messages. We use Kafka Bridges to send messages to Kafka topics. Kafka messages are sent to the Kafka Bridge in JSON format. #HL7 #JSON #InterSystems IRIS for Health #Open Exchange Open Exchange app 0 0 0 276
Question Oliver Wilms · Jan 11, 2024 Convert HL7 message to JSON Hello, I tried to convert HL7 message to JSON in a business process and I got errors. Has anybody converted HL7 to JSON? Are certain characters not allowed in JSON? I just tried to set a property to quote request.RAWContent and quote. I will try to put example in GitHub and share here later. #HL7 #JSON #InterSystems IRIS for Health 0 5 0 1.2K
Question Oliver Wilms · Jan 10, 2024 When we deploy IRIS cluster using IKO, can we add async IRIS instance outside of the cluster? Hello, we deploy IRIScluster using IKO on Red Hat OpenShift deployed in AWS. For DR, we have another AWS region on stand by. We do daily backups. I run a standalone IRIS in the second region. I want to add it as async member to the mirror to have some essential data available in the standby region. Is this possible? #Kubernetes #Mirroring #InterSystems IRIS 0 5 0 284
Question Oliver Wilms · Dec 27, 2023 Does InterSystems REST service creation support swagger API version 3? Does Using the %REST.API Class work with Swagger OpenAPI version 3? I got an error when I tried it on IRIS 2022.2 ERROR #8738: Correct OpenAPI 2.0 version was not specified: . <$.swagger> #API #InterSystems IRIS 1 1 0 314
Article Oliver Wilms · Nov 28, 2023 2m read java-excel-iris uses java code to read Excel data and store it into IRIS global My newest app includes a java routine to read data from Excel 95, 97, 2000, XP, and 2003 workbooks and write the data into IRIS globals using Java Native API library. If you have Git and Docker installed, clone/git pull the repo into any local directory $ git clone https://github.com/oliverwilms/excel-java-iris.git Open the terminal in this directory and run: $ docker-compose up -d Execute java class IRISNative #Java #InterSystems IRIS #Open Exchange Open Exchange app 2 1 0 285
Discussion Oliver Wilms · Jun 29, 2023 The idea for iris-user-manager I want to deploy IRIS apps running in containers in Kubernetes with user accounts configured. I have a %ZSTART routine which looks for an XML file with Users export data and if the %ZSTART routine finds this file, it imports it. This Users export data can be obtained by running a class method. I have defined a task which can be scheduled or run on demand. This tasks imports user data from an XM file. In Kubernetes I can provide a ConfigMap to stage the Users data for the %ZSTART routine. #Kubernetes #InterSystems IRIS 1 2 0 246
Article Oliver Wilms · Apr 21, 2023 2m read Copy data into IRIS Cloud SQL deployment using sqlalchemy-iris We have a rule to disable a user account if they have not logged in for a certain number of days. IRIS Audit database logs many events such as login failures for example. It can be configured to log successful logins as well. We have IRIS clusters with many IRIS instances. I like to run queries against audit data from ALL IRIS instances and identify user accounts which have not logged into ANY IRIS instance. #Cloud #Python #SQL #InterSystems IRIS Open Exchange app 1 1 0 234
Article Oliver Wilms · Apr 21, 2023 1m read Still trying to copy data from audit-consolidator into IRIS Cloud SQL Within IRIS I defined a task to export audit data every day. I provide some sample files in my GitHub repo. #Python #SQL #InterSystems IRIS Open Exchange app 1 1 0 232