検索

記事
· 2024年11月6日 1m read

How to get into the Hall of Fame of the Ideas Portal

Hi Community!

We hope you know that when you have an interesting idea about InterSystems products or services, you should publish it on the Ideas Portal. And those Developer Community members who implement the proposed ideas are added to the "Hall of Fame". Want to get accepted to the InterSystems Ideas Hall of Fame? Read on to learn how you can get on the list.

 

Hall of Fame is created to pay tribute to heroes who implemented ideas from the Ideas Portal. It contains names of implemented ideas, names of developers who realized them, and the list of projects. 

To get mentioned on this page:

1. Choose the Community Opportunity idea that you like and can implement.

2. Implement this idea and publish the implementation project on the Open Exchange portal. Fill in the "Ideas Portal" field while publishing your application with a link to your implemented idea.

OR 

Post a comment on the implemented idea on the Ideas Portal with a link to your application on the Open Exchange.

3. The Community Team experts will review your published app. After that, welcome to the Hall of Fame!

Good luck in your projects to implement ideas!

1 Comment
ディスカッション (1)2
続けるにはログインするか新規登録を行ってください
記事
· 2024年11月6日 2m read

Depuración de un error `<ILLEGAL VALUE>` de `$zf(-100)` que solo ocurre en Linux

Resumen: si concatenáis nombres de archivos con **/STDOUT** y **/STDERR** en una llamada a `$zf(-100)`, ponedlos entre comillas.

Me encontré con un error `<ILLEGAL VALUE>` en el siguiente código, lo cual me dejó perplejo al principio. Esto era parte de una prueba unitaria que funcionaba perfectamente en Windows, pero cuando el CI se ejecutaba en Docker fallaba:

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)

El problema, que parece dolorosamente obvio una vez que sabes la respuesta, es que en Linux **outFile** contiene barras inclinadas, por lo que se interpretan como indicadores de palabra clave para `$zf(-100)` y, por supuesto, no son válidas. El error `<ILLEGAL VALUE>` en realidad es útil aquí, y la solución es poner los nombres de archivo entre comillas:

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)

Principalmente estoy publicando esto para que, si alguien le pregunta a la IA de la Comunidad de Desarrolladores "¿Por qué obtengo un error `<ILLEGAL VALUE>` de `$zf(-100)`?", esta respuesta aparezca. La respuesta inicial aquí fue muy útil; simplemente no cubría mi error específico.

ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
ディスカッション (0)0
続けるにはログインするか新規登録を行ってください
お知らせ
· 2024年11月6日

Webinar en español: Unificando Datos con InterSystems IRIS: Explorando el Paradigma ‘Connect or Collect’

¡Hola desarrolladores! 

Os invitamos a un nuevo webinar en español: Unificando Datos con InterSystems IRIS: Explorando el Paradigma ‘Connect or Collect’ el jueves 28 de noviembre, a las 4:00 PM (CET).

 

Descubrid cómo integrar y analizar datos de diversas fuentes de manera fluida utilizando InterSystems IRIS y la tecnología Smart Data Fabric. En esta sesión, demostraremos el poder del paradigma "Connect or Collect", enfocándonos en la nueva funcionalidad de Foreign Table para conectar bases de datos externas y aprovechar la interoperabilidad de IRIS para recopilar y unificar datos desde archivos CSV.

Observad cómo combinar datasets conectados y recopilados para realizar consultas avanzadas, ayudando a las empresas a unificar sus datos para obtener mejores conocimientos y tomar decisiones más informadas.

Webinar dirigido a Desarrolladores, Arquitectos y expertos en interoperabilidad.

¡Os esperamos!

🗣 Ponente: @Pierre-Yves.Duquesnoy, Senior Sales Engineer en InterSystems

➡️ Registro >>

ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
質問
· 2024年11月5日

How to manipulate a business rule through SQL or APIs?

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>
</ruleSet>
<ruleSet name="" effectiveBegin="" effectiveEnd="">
</ruleSet>
</ruleDefinition>
}

}

Then save and compiled the rule.

 

I have some questions about managing rules from a 3rd party application.

1. list the rules made in their application

I only find SQL querying on %Dictionary.ClassDefinition that may list the rules.

I also find existing persistent classes such as Ens.Rule.RuleDefinition but there is no record stored in the according table. 

I wonder whether there is a more specific way to list existing rules through SQL query or ObjectScript API calls?

 

2. How can they integrate the UI managing a specific ruls though http calls?

For example, if they listed existing rules, selected the rule Test.TestRule in THEIR UI and lunched IRIS management portal with rule editor.

With the url such as http://localhost:52880/ui/interop/rule-editor/index.html?$NAMESPACE=FHIRSERVER, it may lead to the editor while is there more parameter to the url so that Test.TestRule can be open by the eiditor for editing? 

 

Thanks

3 Comments
ディスカッション (3)2
続けるにはログインするか新規登録を行ってください