New post

検索

Article
· Dec 24, 2024 3m read

Interoperability(Ensemble)の大量にたまったイベントログやメッセージをAPIを利用して削除する方法

これは InterSystems FAQ サイトの記事です。

イベントログの削除には、Ens.Util.LogクラスのPurge()メソッドを使用します。実行時以下の引数を指定します。

第1引数:削除数(参照渡し)

第2引数:保持日数(デフォルト7)

 

メッセージの削除には、2種類の方法があります。

1) 2022.1.2以降の導入されたマルチプロセスで削除する方法

Ens.Ens.Util.MessagePurgeクラスのPurge()メソッドを使用します。実行時以下の引数を指定します。

第1引数:削除数(参照渡し)

第2引数:保持日数(デフォルト7)

第3引数:1を指定(Completeではないメッセージの削除を防止するための指定)

第4引数:メッセージボディも一緒に削除する場合は1を指定

第5引数:デフォルトは500(秒)が設定されていますが、大量のメッセージをパージするとクリアされたビットマップの最適化に時間を要して最適化が完了しない場合があるため、大量削除の場合は 10000000000など大きな値を指定します。

2) Ens.MessageHeaderクラスのPurge()メソッドを使用する方法。

実行時以下の引数を指定します。

第1引数:削除数(参照渡し)

第2引数:保持日数(デフォルト7)

第3引数:1を指定(Completeではないメッセージの削除を防止するための指定)

第4引数:メッセージボディも一緒に削除する場合は1を指定

 

上記パージ用メソッド実行時、ログ削除の内容もジャーナルに記録されますので、Purge()メソッド実行中プロセスのジャーナルファイルへの書き込みを無効にする設定を使用します。

※ジャーナルファイルへの書き込みが無効化されるのは、以下ユーティリティを実行しているプロセスのみのため、システム全体に影響はありません。

※注意※ ミラーリングを使用している環境でミラーデータベースへの更新ではこのジャーナル無効化の影響を受けず、ジャーナルが記録されますのでご注意ください。

以下実行例です。

//使用中プロセスのジャーナルファイルへの書き込み無効化
do DISABLE^%NOJRN
//イベントログを直近7日分を保持して削除
set st=##class(Ens.Util.Log).Purge(.cnt,7,1)
//削除数確認
write cnt,!

//マルチスレッド対応のメッセージヘッダとボディを直近7日分を保持して削除する
set st=##class(Ens.Util.MessagePurge).Purge(.cnt2,7,1,1,10000000000)
//削除数確認
write cnt2,!

//メッセージヘッダとボディを直近7日間分を保持して削除
set st=##class(Ens.MessageHeader).Purge(.cnt3,7,1,1)
//削除数確認
write cnt3,!

//使用中プロセスのジャーナルファイルへの書き込み有効化
do ENABLE^%NOJRN
Discussion (0)1
Log in or sign up to continue
Article
· Dec 24, 2024 2m read

第五十七章 File 输入 输出 - READ 命令

第五十七章 File 输入 输出 - READ 命令

在定位的 READWRITE 之后,后续的 READWRITE 操作将按顺序进行,直到下一个带有 position 参数的 USE 命令。

READ 命令从当前设备读取数据,一次读取一条记录。读取超过文件末尾会导致错误。

Discussion (0)1
Log in or sign up to continue
Article
· Dec 24, 2024 2m read

Como administrar inscrições no InterSystems Ideas

Oi Comunidade!

Nós sabemos que pode ser frustrante receber muitos emails (e nós definitivamente não queremos adicionar no seu lote), então aqui está como você pode definir notificações por email para o portal InterSystems Ideas.

Por padrão, todos os usuários registrados são inscritos em todas as categorias de ideias. Para mudar isso, entre no seu perfil do Portal de Ideias, selecione "Edit Profile", e então clique dentro do item "Weekly summary email", clique em "categories to highlight" e escolha o que você tem interesse.

 

Também tem algumas coisas que você deve saber:

1. Quando você cria uma ideia ou vota numa ideia existente, você automaticamente se inscreve para mudanças de status e comentários relacionados àquela ideia.

2. Você pode se inscrever/desinscrever de notificações relacionadas a uma ideia especifica clicando no botão "Subscribed" no topo direito da tela.

Se você apoia uma ideia, mas não quer receber notificações, por favor não cancele seu voto para se desinscrever, use o botão "Subscribed".

3. Para ver as ideias que você se inscreveu, use o filtro "My subscriptions" no menu principal do Portal de Ideias. Esse filtro estará disponível após o login.

Ali, você pode gerenciar suas inscrições a cada ideia

4. Se você não quer notificações do Portal de Ideias, envie uma mensagem privada a @Vadim Aniskin .


Aguardando suas novas ideias, comentários e votos no InterSystems Ideas! 

Discussion (0)1
Log in or sign up to continue
Article
· Dec 24, 2024 3m read

Implementing Secure HTTPS in HealthConnect

Hello everyone,

I want to share my experience configuring an IIS server to enable secure HTTPs access to HealthShare/HealthConnect.

After installing the “WebServerGateway” and completing the initial setup, I encountered a few issues. Specifically, when trying to log into HealthConnect using HTTPS, the logo didn’t appear, and clicking any buttons didn’t trigger any response. See screenshot below:

Below is a step-by-step guide to resolve the current issue, as well as another issue I encountered with accessing the Rule Editor. Additionally, the HELP button in the management portal displays an error (not found), but I am not addressing that issue in this post

1. Solution: IIS Configuration - Adding "CSPGateway_all" to Handler Mapping

To fix the issue where nothing happens when logging in via HTTPS, follow these steps to add "CSPGateway_all" to the Handler Mapping in IIS:

  1. Open the IIS server on your system.
  2. Navigate to the Default Website -
  3. Select the “csp” Folder (folder under the Default Website)
  4. Double-click on the "Handler Mapping" option on the "csp Home" screen (as shown in the screenshot below).

  1. Add a Module Mapping -  On the Handler Mapping page, click "Add Module Mapping" on the right-hand side (see screenshot below).

  1. Complete the Module Mapping Form - Fill in the form with the necessary details (as shown in the screenshot below).

Make sure to untick the option "Invoke handler only if request is mapped to.

  1. Click "OK" to save your changes. Click "OK" again to confirm.

Once these steps are complete, you should see "CSPGateway_all" listed among the handlers. The other handlers should have been automatically added when the WebServerGateway was installed (as shown in the screenshot below)

After completing this configuration, I was able to log into HealthConnect securely via HTTPS, and everything worked as expected. See screenshot below:

 

2. Resolving Rule Editor Access Issue

I faced another problem - the Rule Editor was inaccessible. When attempting to open the Business Rule Name from the management portal’s process interface, it prompted for a username and password, but the login didn’t work. See screenshot below:

 

Temporary Solution for Rule Editor Access

To temporarily fix this issue, follow these steps:

  1. Open the Management Portal.
  2. Go to System Administration --> Security --> Application --> Web Application.
  3. Locate and Click on:  /ui/interop/rule-editor
  4. Disable the Application - Uncheck the "Enabled Application" checkbox to disable the Rule Editor application.
  5. Save Changes

After following these steps, you should be able to access the Rule Editor. Note that it will appear in its previous layout.

By following these guidelines, you should be able to resolve the issues related to secure HTTPS access and access to the Rule Editor in HealthConnect.

There are other issues as well. For instance, the HELP button in the management portal displays a "not found"... error. There may be additional issues, and if any are identified, I will provide updates and attempt to find solutions as well

Thank you.

Discussion (0)1
Log in or sign up to continue
Question
· Dec 24, 2024

Federated SSO for Clinical Viewer demo is not working

Hi!   

I'm trying to set up a Clinical Viewer demo env with HealthShare 2024.2. 
I've done the standard installation following the doc : 

Everything works until I get to the point where I have to enable federated SSO (UCR demo - Federated SSO). Once it is activated, I can no longer access the instance through the portal, and the browser displays the following error:

Checking the messages.log, I see that every time I try to enable federated SSO and access the portal, I encounter the following error:

12/24/24-10:51:55:639 (98515) 2 [Utility.Event] Error in %ZHS.OAuth2.UI.Login:OnPreHTTP- ERROR #5809: Object to Load not found, class 'OAuth2.Client', ID '172.24.40.31-443-ucr-hs-instance'

I followed the doc step by step. Am I missing something here?

Thanks!

9 Comments
Discussion (9)4
Log in or sign up to continue