1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <Export generator =" Cache" version =" 25" zv =" Cache for Windows (x86-64) 2017.1 (Build 730U)" ts =" 2017-09-10 21:43:33 " >
2
+ <Export generator =" Cache" version =" 25" zv =" Cache for Windows (x86-64) 2017.1 (Build 730U)" ts =" 2017-11-06 20:47:48 " >
3
3
<Class name =" kutac.monitor.utils.Installer" >
4
- <TimeChanged >64536,78183.96318 </TimeChanged >
4
+ <TimeChanged >64593,74404.434052 </TimeChanged >
5
5
<TimeCreated >63732,50627.865496</TimeCreated >
6
6
7
7
<XData name =" Install" >
@@ -300,41 +300,49 @@ do ##class(kutac.monitor.utils.Installer).setup(.pVars)</Description>
300
300
<FormalSpec >pVars,pLogLevel,tInstaller</FormalSpec >
301
301
<Implementation ><![CDATA[
302
302
set sc = $$$OK
303
-
304
303
set i = 0
304
+
305
305
while 1 {
306
306
set id = "SYSMON.DFIData||File" _ i
307
307
if (##class(%Dictionary.CompiledXData).%ExistsId(id) = 0) Q
308
308
set dfi = ##class(%Dictionary.CompiledXData).%OpenId(id)
309
-
310
309
set data = ##class(%GlobalCharacterStream).%New()
311
310
do data.Clear()
312
- do data.Write($zconvert(dfi.Data.Read(dfi.Data.Size), "O", "UTF8"))
313
-
314
- set dfiName = $piece(dfi.Description,".",1)
315
311
312
+ do data.Write(
313
+ $System.Encryption.Base64Decode(
314
+ $zconvert(
315
+ dfi.Data.Read(dfi.Data.Size),
316
+ "O",
317
+ "UTF8"
318
+ )
319
+ )
320
+ )
321
+
322
+ set dfiName = dfi.Description
323
+
316
324
set Namespace = tInstaller.Evaluate("${Namespace}")
317
325
do tInstaller.PushNS(Namespace)
318
326
319
327
if '##class(%DeepSee.UI.FolderItemDocument).%ExistsId(dfiName) {
320
328
try {
321
329
set tDoc = ##class(%DeepSee.UI.FolderItemDocument).%New(dfiName)
322
330
set sc = tDoc.ImportFromXML(data)
323
-
324
331
set sc = tDoc.Save()
325
332
do tInstaller.Log(pLogLevel, "Creating DFI", dfiName)
326
333
} Catch e {
327
334
set sc = e.AsStatus()
335
+ quit
328
336
}
329
337
} else {
330
338
try {
331
339
set tDoc = ##class(%DeepSee.UI.FolderItemDocument).%OpenId(dfiName)
332
340
set sc = tDoc.ImportFromXML(data)
333
-
334
341
set sc = tDoc.Save()
335
342
do tInstaller.Log(pLogLevel, "Creating DFI", dfiName)
336
343
} Catch e {
337
344
set sc = e.AsStatus()
345
+ quit
338
346
}
339
347
}
340
348
@@ -343,7 +351,7 @@ do ##class(kutac.monitor.utils.Installer).setup(.pVars)</Description>
343
351
set i = i + 1
344
352
}
345
353
346
- quit $$$OK
354
+ quit sc
347
355
]]> </Implementation >
348
356
</Method >
349
357
0 commit comments