go to post Eduard Lebedyuk · Oct 18, 2019 $ZUTIL(69,10) - Sets system behavior when journal is full. Calls: $ZU(69,10,n) - set journaling behavior $ZU(69,10) - get journaling behavior Parameters: n - The boolean value that specifies which system behavior applies when a journal is full. Values: 0 = Journaling suspends and processing continues. 1 = System freezes. Description$ZUTIL(69,10) determines Caché behavior when an error occurs in writing to the journal. If this option is set to “true” (1), as soon as the error occurs all global activities that are normally journaled are blocked, which causes other jobs to block. The typical outcome is that Caché goes into a hang state until the journaling problem is resolved, and then resumes running. While Caché is hanging, the administrator can take corrective measures, such as freeing up space on a disk that is full, switching the journal to a new disk, etc. This option has the advantage that once the problem is fixed and Caché resumes running, no journal information has been lost. It has the disadvantage that the system is less available while the problem is being solved. If this option is set to “false” (0), when a journaling error occurs journaling is entirely disabled, while Caché continues running as normal. Caché sends a console message to alert the administrator, who can fix the problem and then run ^JRNSWTCH at the console to restart journaling. The default is zero (0). The native default for this switch is “false” (0); that is, to suspend journaling and allow Caché processing to continue. Invoking $ZUTIL(69,10) without specifying n returns the current switch setting. This system-wide default can be configured. Go to the System Management Portal, select [Home] > [Configuration] >[Journal Settings]. View and edit the current setting of Freeze on error. The default is “No”. Setting $ZUTIL(69,10) changes the system configuration setting shown in the System Management Portal; this changepersists across a Caché shutdown and restart. $ZUTIL(69,68) - Enables or disables the encryption of journal files system-wide. Calls: $ZU(69,68,n) - set encryption $ZU(69,68) - get encryption Parameters: n: The boolean value that specifies whether or not Caché should establish encryption for future journal files. Values: 1 = encrypt journal files. 0 = do not encrypt journal files. The default is 0. DescriptionThe $ZUTIL(69,68) function disables or enables the encryption of journal files system-wide. $ZUTIL(69,68) takes effect when the next journal file is initiated.Invoking $ZUTIL(69,68) without specifying n returns the current switch setting $ZUTIL(69,70) - Enables or disables $DOUBLE returning INF and NAN values system-wide. Calls: $ZU(69,70) - get $DOUBLE behaviour $ZU(69,70,n)- set $DOUBLE behaviour Parameters n - A boolean that specifies whether to generate Caché error messages or return INF, –INF, and NAN values for unresolvable IEEE floating point conversions. Values: 0 - $DOUBLE returns INF, –INF, or NAN when given an unresolvable numeric expression. 1 - $DOUBLE generates Caché <MAXNUMBER>, <ILLEGAL VALUE>, and <DIVIDE> errors when given an unresolvable numeric expression. This is the default. DescriptionThe $ZUTIL(69,70) function sets the $DOUBLE function return value behavior system-wide. If 0, $DOUBLE returns INF (infinity), –INF, and NAN (Not A Number) for unresolvable IEEE floating point conversions. If 1, $DOUBLE generates Caché errors for unresolvable IEEE floating point conversions.$ZUTIL(69,70) controls the issuing of INF, –INF, and NAN when a $DOUBLE numeric operation cannot be resolved to a numeric value. It does not control the issuing of INF, –INF, and NAN in all cases. $DOUBLE always returns INF, –INF, or NAN when you supply one of these strings as the input value, regardless of the $ZUTIL(69,70) setting.Mathematical operations on $DOUBLE numbers that result in an INF, –INF, or NAN are controlled by $ZUTIL(69,70).These include arithmetic operations, exponentiation, and logarithmic and trigonometric functions.Invoking $ZUTIL(69,70) without specifying n returns the current switch setting.
go to post Eduard Lebedyuk · Oct 18, 2019 add SOAP envelope Not sure what are you trying to do. SOAP Operation should add all relevant headers and additional ones can be passed as objects. Docs. UPD. I meant java code for com.santer.siss.mapping.v25.fse.tester.HL7toXML:hl7ToRP method. For $$$CLASSNAME you can click RMB on it and then LMB on "Go To $$$CLASSNAME", in there you can see a macro definition(#define CLASSNAME <definition>). Please post it.
go to post Eduard Lebedyuk · Oct 18, 2019 Streams work like this: set stream = ##class(<stream class>).%New() do stream.Write(string) set sc = stream.Save() In your case I'd recommend using %Stream.GlobalCharacter as stream class. FileStream also works better if you supply a filename. Check this doc.
go to post Eduard Lebedyuk · Oct 18, 2019 The quite strange thing is that when I try to log the class type I have obtained as output of the java class, I didn't get %String or some otherObjectScript class but, instead, I get the xml message itself. It seem to be that the result don't have a proper class type. That is correct, the ret variable seems to be a string, so it's not a class, therefore it cannot have a class name. In Object Script there are objects and primitives (strings). Only objects have classes. The final issue arise when I try to put the result into a stream; the xml message results empty and, moreover, If I try to send just the RPStream, I get this error: OID is null. How are you doing it?
go to post Eduard Lebedyuk · Oct 18, 2019 Please consider posting com.santer.siss.mapping.v25.fse.tester.HL7toXML:hl7ToRP method. And also $$$CLASSNAME definition.
go to post Eduard Lebedyuk · Oct 18, 2019 Which part of it? There's like 5 different suggestions contradicting each other.
go to post Eduard Lebedyuk · Oct 17, 2019 ByRef is just flavor text, only passing by dot matters. Passing an object via dot to ByRef method argument means your code can return other object. If you only modify an existing object you don't need to use ByRef or pass object via dot. I recommend using ByRef only in cases where you need to return different object.
go to post Eduard Lebedyuk · Oct 15, 2019 From readme it follows that you do need to write the resolvers. Have you done it? If you're only Starting with FHIR I'd recommend checking FHIR on Learning.InterSystems.com.
go to post Eduard Lebedyuk · Oct 13, 2019 First issue (empty books): books is a local variable, existing in a current frame stack, as soon as you leave the method it disappears. Well, in your case you're not using it, so it's empty ^books is a global variable, so it's stored in a database and you're using it Second issue (12@Library.Book in value). 12@Library.Book is an OREF. As it's essentially a pointer it cannot be stored in a persistent way. What do you want to achieve with your code? Learning.InterSystems.com has hundrers of online courses. Check multimodel development with ObjectScript.
go to post Eduard Lebedyuk · Oct 13, 2019 Some useful reading: What's a global? How globals, tables and classes correspond to each other.
go to post Eduard Lebedyuk · Oct 13, 2019 Set terminal prompt. For everyone: Config.Startup:SetTerminalPrompt For current process: $system.Process.TerminalPrompt To set system mode set ^%SYS("SystemMode") global to whatever value you want. Highlighted values are: LIVE, TEST, DEVELOPMENT, FAILOVER.
go to post Eduard Lebedyuk · Oct 12, 2019 I just wish there was a way to default the terminal colours Easy to do that. Create %ZSTART routine: LOGIN // Color options. 54 - red // for i=1:1:60 write $j(i,2)," ",$C(27)_"["_i_"m"_"Hello"_$C(27)_"[0m",! write $C(27)_"[54m" quit 1 And done. Here's the result
go to post Eduard Lebedyuk · Oct 11, 2019 When using import wizard, make classes persistent, not serial.
go to post Eduard Lebedyuk · Oct 7, 2019 Well, maybe Apache POI would be better. In my opinion the best approach to MS Office docs is to try things with the real-life samples. Far to many combinations to try to predict anything.
go to post Eduard Lebedyuk · Oct 7, 2019 Yes it can, check this post. But for conversion I would recommend LibreOffice. Here's how it can be used from Cache/Ensemble/InterSystems IRIS.
go to post Eduard Lebedyuk · Oct 7, 2019 Apache POI can write to Excel files, you can extend the current integration if you want.
go to post Eduard Lebedyuk · Oct 7, 2019 If you need to consume data from Excel check this Apache POI integration.