Question Pietro Di Leo · Dec 5 Issue while compiling code with "cuk" qualifiers on VSC I'm experiencing an issue while compiling code in Visual Studio Code with "cuk" qualifiers. When I try to compile, the following message appears after a while: In VSC, the "cuk" qualifiers are always used as default and the following message is shown in the Output panel of VSC when a compilation is successful: #Compiler #Studio #InterSystems IRIS #TrakCare 0 2 0 55
Question Pietro Di Leo · Nov 20 Impossible to modify headers and status in a %CSP.REST %response Hi everybody, I'm modifying a REST interface for a client but it seems impossible to me to modify HTTP Response Status and including custom HTTP Headers either. My dispatch class (extending %CSP.REST) is contacted through a POST request and the latter is processed in a custom class (extending %CSP.REST as well) accessed as shown in the example below: <Route Url="/test" Method="POST" Call="Custom.Test:Process" /> Within the processing class I tried executing the following statements with no success: #CSP #REST API #InterSystems IRIS #TrakCare 0 6 0 91
Question Pietro Di Leo · Sep 11 Determine Job/Process State Hi, I'm working on a large extraction from a database and need to parallelize the processes during the extraction. Here's what happens: The user starts the extraction from. Several jobs are started using the Job <Method> instruction. At the end, the user expects to find a document containing the results of all the extractions. What I'd like to do is start a new job that checks whether the previously started jobs have finished or are still working and consequently produce the document. #Key Question #InterSystems IRIS 0 8 0 162
Question Pietro Di Leo · Jun 13 Which are the best practises to handle large JSON? Hello everyone, Recently, I've been working on a Business Process that processes a large JSON FHIR message containing up to 50k requests in an array within the JSON. Currently, the code imports the JSON as a dynamic object from the original message stream, obtains an iterator from it, and processes each request one at a time in a loop. #Embedded Python #FHIR #JSON #ObjectScript #Performance #Python #HealthShare #InterSystems IRIS 0 2 0 412
Question Pietro Di Leo · Apr 17 module 'iris' has no attribute 'arrayref' while converting a python dictionary into an array Hello everybody, I've been experimenting with Embedded Python and have been following the steps outlined in this documentation: https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls... I'm trying to convert a python dictionary into an objectscript array but there is an issue with the 'arrayref' function, that is not working as in the linked example. This is a snapshoot of my IRIS terminal: #Embedded Python #ObjectScript #Python #Terminal #InterSystems IRIS 0 2 1 127
Question Pietro Di Leo · Apr 10 Initiating a Method After a Timeout During Message Delivery Hello everyone, I'm currently working on a business operation that employs a retry mechanism with a FailureTimeout = -1. So, this BO attempts to resend the message at the end of a RetryInterval of n seconds (n is configurable). #Business Operation #InterSystems IRIS 1 4 1 221
Question Pietro Di Leo · Jan 17 How to export a project via Visual Studio Code? Hi everyone, Does anyone know how to export projects via VSC? I opened the project through the "InterSystems Tools" plugin (command is "Edit Code in Project") and I can correctly work on it. However, when I try using the "ObjectScript" plugin to export the project (right click on the project -> "Export Project Contents") This message appears and it is not possible to export the project: #Data Import and Export #ObjectScript #Tools #InterSystems IRIS #VSCode 0 3 0 2K
Article Pietro Di Leo · Nov 16, 2023 5m read Accessing the IRIS Terminal: A Comprehensive Guide for Visual Studio Code Users Introduction #Docker #Studio #Terminal #Tips & Tricks #Tools #InterSystems IRIS #VSCode 17 7 10 1.6K
Question Pietro Di Leo · Nov 6, 2023 Malformed JSON in response body Hi everyone, today I'm asking your help with an issue related to the response messages sent from my production to a client software, such as Postman or SoapUI. Issue In the last few days I've been unable to view the responses received from my production in Postman, even if I was able to do so earlier. I'm sending the request to a remote server reachable via a Putty tunnel. Postman Test I'm currently testing this simple POST message: #ObjectScript #InterSystems IRIS 1 1 0 764
Question Pietro Di Leo · Oct 16, 2023 How to send a message to Render and gunicorn-deployed web service Hi everyone, My problem today is how to send an HTTP message to a web service deployed via Render and gunicorn. Issue Every time I try to contact the web service I get an error. Searching on the web, I've found this StackOverflow question that suggests the issue could be set off from a missing "/" character in the endpoint string. #Business Operation #InterSystems IRIS 0 4 0 246
Question Pietro Di Leo · Oct 13, 2023 Python Integration Issues on Remote IRIS Server Hi everyone, I'm attempting to compile a basic Python code on a remote server, but it appears that the compiler doesn't recognize the language. The remote server is running a virtual machine with Oracle Linux Server 7.9 (64-bit), and it has IRIS for UNIX (Red Hat Enterprise Linux for x86-64) 2021.1 (Build 215U) [HealthConnect:3.3.0] installed. When I try to compile a script that includes a Python ClassMethod, such as this "testpy.cls": #Embedded Python #Python #InterSystems IRIS for Health 0 4 0 235
Question Pietro Di Leo · Oct 8, 2023 Automatic prettification of JSON in Visual Trace Hello everyone, Is there a way to prettify the JSON streams in the incoming HTTP messages so that they are more readable in Visual Trace? The HTTP messages sent by many software aren't prettified and are displayed like this in the Visual Trace: On the other hand, other software like Postman prettify the messages and they are displayed in this way: #JSON #Visualization #InterSystems IRIS 0 3 0 279
Question Pietro Di Leo · Sep 22, 2023 How to start a new line of text within $$$LOGINFO or $$$TRACE? Hi everyone, Today I have a simple yet potentially valuable question: How can I begin a new line of text within $$$LOGINFO or $$$TRACE? For instance, if I need to display a long log message within the visual trace, is it possible to do something like this: #ObjectScript #InterSystems IRIS #VSCode 0 6 0 739
Question Pietro Di Leo · Sep 11, 2023 Is it possible to dynamically adjust the FailureTimeout of a Business Operation? Hi everyone, I'm working on a Business Operation whit an HTTP Outbound Adapter and I would like to know if is possible to adjust the FailureTimeout value based on the incoming message type. For example, I would like to have a FailureTimeout of 60 seconds for the standard operations and a FailureTimeout of -1 (wait forever) for few special operations that absolutely need a response. Can we dynamically modify the FailureTimeout through code, based on either the incoming message type or a specified parameter?n the incoming message type or depending by a parameter? #Business Operation #InterSystems IRIS 0 10 0 495
Question Pietro Di Leo · Sep 7, 2023 Inconsistent Visual Trace Outputs Hi everyone, I have a question related to a strange issue I've been experiencing over the last few days. Context I'm attempting to create an automatic resending system that, if no reply is received from the server, raises an error and re-sends the message. This process continues for the a duration defined by the FailureTimeout (e.g., 20 seconds), and a new message is being sent every 5 seconds until the FailureTimeout is reached. If no response was obtained from the server, the system returns an error. #InterSystems IRIS 0 2 0 240
Question Pietro Di Leo · Aug 11, 2023 Is there something similar to the Studio Output panel available in Visual Studio Code? Hi everyone, Lately, I've been spending a lot of time with Visual Studio Code (VSC), and I've been wondering if there's a terminal or a panel within VSC that acts like the Intersystems Studio Output panel, which serves both as an input and output window and allows the execution of ObjectScript commands. Could anyone help? Thanks :) #Key Question #InterSystems IRIS #VSCode 1 11 1 367
Question Pietro Di Leo · Aug 8, 2023 Issues with Automatic Resending in a Business Operation Context I have created a Business Operation (BO) named "Sender" that sends HTTP messages to an endpoint (for testing, I'm using Postman's Mock Servers). Goal: I want to set up an automatic timeout mechanism so that if I don't receive a response from the server within 18 seconds, an alert is generated and the message is resent. This process should be repeated every 18 seconds, for a maximum of 90 seconds. If no response is received within 90 seconds, I would like to generate an error message. On the other hand, if a response is received, I want to stop the resending process and complete the operation by indicating successful reception. #Debugging #InterSystems IRIS 0 7 0 384
Question Pietro Di Leo · Jul 24, 2023 How to automatically resend an HTTP message from a Business Operation Hi everyone, I'm trying to figure out how to automatically resend a message using a business operation. #InterSystems IRIS 0 8 0 345