2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

CADSのファイルやラベルの変更通知

Last updated at Posted at 2022-09-20

SPSS Collaboration And Deployment Servicesのレポジトリには変更通知機能があります。

重要なオブジェクトの変更やラベルの変更などの変更をメールやJMSで通知することが可能です。

  • テスト環境
    • SPSS CADS 8.4
    • Windows Server 2019 std.

ファイルの変更

ファイルが更新された場合にメッセージを送ります。
更新を検知したいファイルを選び、右クリックで「通知」を選びます。
image.png

通知対象者を設定します。ここではEメールアドレスを入力します。
image.png

タイトルや本文のデフォルトは以下のようになっています。変数やif文も使えるようになっています。

タイトル
IBM SPSS Collaboration and Deployment Services: New version of ${ResourceName} created
本文
<html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> </head> 
<body> <p>A new version of the file <b>${ResourceName}</b> has been created.<br/>  #if($Attachments)   See attachment. #else   <p>To review the content of the file, go to <a href='${ResourceHttpUrl}'>${ResourceHttpUrl}</a>.</p> #end  <hr><p>This is a machine-generated message. Please do not reply directly. If you do not wish to receive this notification, unsubscribe or contact your Repository administrator.</p> </body> </html> 

image.png

プレビューで確認してみます。
image.png

以下のメッセージが送られます。
image.png

これはカスタマイズ可能です。以下のようにカスタマイズしてみます。

タイトル
IBM SPSS Collaboration and Deployment Services:${ResourceName} の新しいバージョンが作られました。
本文
<html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> </head> 
<body> <p> <b>${ResourcePath}</b> の新しいバージョンが作られました。<br/>  #if($Attachments)   See attachment. #else   <p>To review the content of the file, go to <a href='${ResourceHttpUrl}'>${ResourceHttpUrl}</a>.</p> #end  <hr><p>This is a machine-generated message. Please do not reply directly. If you do not wish to receive this notification, unsubscribe or contact your Repository administrator.</p> </body> </html> 

カスタマイズされています。
image.png

更新したストリーム・ファイルを保存してみます。
image.png

image.png

以下のようなメールが届きます。
image.png

ラベルの変更

特定のラベルが変更された場合にメッセージを送ります。
ルートフォルダを選び、右クリックで「通知」の「ラベルイベント」を選びます。

image.png

プラスボタンでラベルイベントを追加します。
image.png

Eメールのアドレスを入力し、ラベルを選びます。ここでは「Production」というラベルを選んでいます。
image.png

タイトルや本文のデフォルトは以下のようになっています。変数やif文も使えるようになっています。

タイトル
IBM SPSS Collaboration and Deployment Services: The label ${VersionLabelName} was#if( $ActionType=="VersionLabelApplied" ) applied to a version of#else removed from#end ${ResourceName}. 
本文
<html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> </head> 
<body>  <p>The label ${VersionLabelName} was   #if( $ActionType=="VersionLabelApplied" )    applied to a version of   #else    removed from   #end   ${ResourcePath}. <br/>   <p>To review the content of the file, go to <a href='${ResourceHttpUrl}'>${ResourceHttpUrl}</a>.</p>  <hr><p>This is a machine-generated message. Please do not reply directly. If you do not wish to receive this notification, unsubscribe or contact your Repository administrator.</p> </body> </html> 

ラベルを変更してみます。
ストリームを右クリックして、プロパティを開きます。
image.png

ラベルをつけたいバージョンを選び、「編集」ボタンをクリックします。この例ではバージョン15に「Production」ラベルを付けようとしています。

image.png

image.png

「使用可能なラベル」から「Production」ラベルを選び、矢印で「適用済みラベル」欄に移し、「OK」で閉じます。
image.png

image.png

1オブジェクトに1ラベルしか適用できないので、バージョン10から15にラベルが移動するという確認のメッセージが出ますので、OKで閉じます。

image.png

「Production」ラベルがバージョン15に移っていることを確認し、「OK]で閉じます。
image.png

ラベルが変更された旨のメールが届きます。

image.png

フォルダの変更

フォルダ内に新しいフォルダが追加された場合にメッセージを送ります。
変更を検知したいフォルダを選び、右クリックで「通知」の「フォルダイベント」を選びます。この例では「creditdemo2」を選びます。

image.png

Eメールのアドレスを入力します。
その他のオプションには以下があります。
「サブフォルダに適用」:さらに下の階層のフォルダの変更も検知します。

image.png

タイトルや本文のデフォルトは以下のようになっています。変数やif文も使えるようになっています。

タイトル
IBM SPSS Collaboration and Deployment Services: Subfolder created in ${ResourcePath}
本文
<html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> </head> 
<body> <p>The #if ( $ActionType == "FolderCreated" ) folder #end ${ChildName} has been created in folder ${ResourcePath}.<br/>  <p>To review the content, go to <a href='${ChildHttpUrl}'>${ChildHttpUrl}</a>.</p> <hr><p>This is a machine-generated message. Please do not reply directly. If you do not wish to receive this notification, unsubscribe or contact your Repository administrator.</p> </body> </html> 

新しいフォルダを作ります。
image.png

フォルダが作られたというメッセージが届きます。
image.png

フォルダコンテンツの変更

フォルダ内に新しいオブジェクトが追加されたり、既存のオブジェクトが変更された場合にメッセージを送ります。
変更を検知したいフォルダを選び、右クリックで「通知」の「フォルダコンテンツイベント」を選びます。この例では「creditdemo2」を選びます。

image.png

Eメールのアドレスを入力します。
その他のオプションには以下があります。
「サブフォルダに適用」:さらに下の階層のフォルダの変更も検知します。
「次のファイル・タイプが変更された時だけ通知する」:例えばストリームファイルの変更だけを検知することができます。
ここでは「サブフォルダに適用」にチェックを付けました。

image.png

タイトルや本文のデフォルトは以下のようになっています。変数やif文も使えるようになっています。

タイトル
IBM SPSS Collaboration and Deployment Services:#if( $ActionType=="FileVersionCreated" ) New version of ${ChildName} has been created in#else ${ChildName} has been added to#end ${ResourcePath}
本文
<html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> </head> 
<body> <p>#if( $ActionType=="FileVersionCreated" ) A new version of file <b>${ChildName}</b> has been created in  #else The file <b>${ChildName}</b> has been added to #end folder <b>${ResourcePath}</b>.</p>  #if($Attachments)   See attachment. #else   <p>To review the content of the file, go to <a href='${ChildHttpUrl}'>${ChildHttpUrl}</a>. </br></p> #end  <hr><p>This is a machine-generated message. Please do not reply directly. If you do not wish to receive this notification, unsubscribe or contact your Repository administrator.</p> </body> </html> 

更新したストリーム・ファイルを保存してみます。
image.png

image.png

ファイルが更新されたというメールが届きます。
image.png

別の新規ファイルを保存してみます。
image.png

「creditdemo2」のもう一つ下のフォルダの「credit2」にストリームを保存します。
image.png

ストリームが保存されたというメッセージが届きます。

image.png

検知できるもの

検知対象 ファイル ラベル フォルダ フォルダコンテンツ
ファイル変更
ファイル追加
フォルダ追加
ラベル追加
ラベル移動

参考:コンテンツに関する通知 - IBM Documentation

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?