go to post Eduard Lebedyuk · Jan 10, 2019 I'm curious about this set tFullValue = $EXTRACT(tNumber,1,$length(tNumber)) in what cases tFullValue is not equal to tNumber? Also after 2014 you can use * to denote last char like this: set tFullValue = $EXTRACT(tNumber,1,*)
go to post Eduard Lebedyuk · Jan 10, 2019 Do you want the data to be accessible by anyone who can view the page?
go to post Eduard Lebedyuk · Jan 9, 2019 There's no default function to do it, but you can easily develop your own custom function. There's $IsValidNum ObjectScript function, which could be used to check that variable is a number. So something like this should work: /// Functions to use in rule definitions. Class Custom.Functions Extends Ens.Rule.FunctionSet { /// Returns 1 if a string is a number, 0 otherwise ClassMethod IsValidNumber(string As %String) As %Boolean [ CodeMode = expression, Final ] { $ISVALIDNUM(string) } }
go to post Eduard Lebedyuk · Jan 9, 2019 SendRequestAsync is available in all Ensemble Hosts (Services, Operations, Processes).For Operations and Services the signature is: Method SendRequestAsync(pTargetDispatchName As %String, pRequest As %Library.Persistent, pDescription As %String = "") As %Status And for Processes the signature is: Method SendRequestAsync(pTargetDispatchName As %String, pRequest As Request, pResponseRequired As %Boolean = 1, pCompletionKey As %String = "", pDescription As %String = "") As %Status
go to post Eduard Lebedyuk · Jan 9, 2019 All possible job states (from EnsConstrains.inc):$$$eJobStatusStarting$$$eJobStatusRegistered$$$eJobStatusVisiting$$$eJobStatusRunning$$$eJobStatusDeQueuing$$$eJobStatusQuiescent$$$eJobStatusError$$$eJobStatusHalted$$$eJobStatusTerminated
go to post Eduard Lebedyuk · Jan 8, 2019 JGW (and therefore JBH) could be run as a separate container with TCP/IP interaction.
go to post Eduard Lebedyuk · Jan 8, 2019 In the future please don't combine separate questions into one post.I am looking for a way to detimerine if a certain namespace is ensemble enabled.To check that some <namespace> has Ensemble enabled call: write ##class(%EnsembleMgr).IsEnsembleNamespace(<namespace>) where <namespace> defaults to current namespace. Log some information to the console log file with a certain error level. %SYS.System class provides the WriteToConsoleLog method, which you can use to write to the cconsole.log file.
go to post Eduard Lebedyuk · Jan 5, 2019 Use %Stream.GlobalBinary to pass streams without saving them on disk. Also use Ens.StreamContainer as an interoperability message class.If you used %Stream.TmpBinary class to hold your stream, it would not be saved.
go to post Eduard Lebedyuk · Jan 4, 2019 If you have SSL config named, say, "AWS" try to set SMTP SSLConfiguration setting to "AWS*" (with asterisk on end). It can help.
go to post Eduard Lebedyuk · Jan 4, 2019 Click "Visual Trace" link to view details.In your case there's 403 error, so you're not authenticated.Check this topic for AWS authorization options.
go to post Eduard Lebedyuk · Jan 4, 2019 - If I have a global available in a certain namespace, can I use InterSystems SQL to query those globals? - How do existing globals and creating classes work? Like I have a Person global right now. Can I turn that into a class and manipulate the data that way?You'll need class mapping to query globals via SQL. Check article series The Art of Mapping Globals to Classes by @Brendan Bannon.- I'm used to Java where you can write a class and then write a driver class to test your classes and methods. Or simply just test your newly created classes and methods in the main method (wherever that lies in your code). Is there something similar in Studio? I can write classes but then they are compiled and I have to go to the terminal and test them? Is this where routines come into play in Studio?You can configure Studio or Atelier debugger to run any class method. There's no need to use routines for that.
go to post Eduard Lebedyuk · Dec 27, 2018 The input pattern is not constant, it's just an example.I'd rather avoid parsing my input pattern and translating it into Cache pattern.
go to post Eduard Lebedyuk · Dec 27, 2018 For simple communication you can use Cache Event API.To distribute work, there's a number of options, discussed here.
go to post Eduard Lebedyuk · Dec 25, 2018 Thanks for the info, Fabian.I myself am a fan of Ubuntu structure, do you know how to get that automatically on other OSes, primarily CentOS?
go to post Eduard Lebedyuk · Dec 24, 2018 While spawning a process on Windows can be (and usually is) costly, linux offers better performance in that regard.Additionally ImageMagick offers two C APIs: High-level and Low-Level they could be used to write a callout library, which would likely offer the best performance.