Does Caché support a relationship property ordered according to a specifc value?
What shoud be the best approach?
Does Caché support a relationship property ordered according to a specifc value?
What shoud be the best approach?
The attached file contains an example of code generation using ObjectGenerators which builds a very simple homemade RuleEngine.
Code generation is an excellent way of increasing performance moving run-time calculations to compile-time.
We could generate code creating routines or implemeting methods using ObjectGenerators. In this example we are using ObjectGenerators.
Update: Rule Engine is now on GitHub https://github.com/intersystems-ib/cache-iat-ruleengine
This morning on the old Caché Google Group, someone posed the following question, which I've decided to answer here, because it's interesting!
Is there a way to iterate ClassMethod's params, and get param's names and values?
The first answer I can come up with is: it's not easy! In any method, you could try to write code like this (where methodName is the name of your method):
set method = ##class(%Dictionary.MethodDefinition).IDKEYOpen($classname(), methodName)
set args = method.FormalSpec
for i=1:1:$length(args, ",") {
set arg = $piece($piece(args, ",", i), ":", 1)
write !, arg , " = ", @arg
}The cache has error messages default, for example , " -139 SQLCODE : Competition impairment on the update: row versions are not the same. "
How i can exchange it for a more friendly to the user's message? I use the CSP.Page and form_save ( ).
What is best practice for this situation?
Caché Monitor is a database\sql tool primarily for InterSystems Caché but can also connect to MS SQL Server, MS Access and more databases. Within Caché Monitors Server Navigator you see all available Namespaces on your Caché Servers. No need to know the name of the Namespace, no need to configure many many JDBC Connections by hand. Just click on the namespace and see all objects like tables, views, classes and more...
There is a beta build available with some new features: A main new feature in this build is called
In preparation for a presentation I need a real-world LDAP schema that has been customized a bit beyond the basics. Perferably this would be based on an OpenLDAP system which would make it easier to merge into this presentation.
If you have such a schema you would be willing to share please respond or contact my directly at Rich.Taylor@InterSystems.com
Thanks in advance.
Rich Taylor
Here is my original query:
SELECT EventType, InitiatedAt, COUNT(*) as cnt FROM HS_IHE_ATNA_Repository.Aggregation WHERE EventType = 'LOGIN' AND LocalDateTime > '2016-02-16 11:00:00' GROUP BY EventType, InitiatedAt
This gives me data like this:
| LOGIN | %SYSTEM | 69918 |
| LOGIN | OTHER | 39 |
However, I need to get the data back as two columns with all but the last concatenated and delimited, more like this:
| LOGIN;%SYSTEM | 69918 |
| LOGIN;OTHER | 39 |
I tried this:
SELECT EventType + ';' + InitiatedAt as k, COUNT(*) as cnt FROM HS_IHE_ATNA_Repository.Aggregation WHERE EventType = 'LOGIN' AND LocalDateTime > '2016-02-16 11:00:00' GROUP BY EventType, InitiatedAt
Hi,
Given a log file with these records representing, hypotethically, the ‘movements’ or changes in residential city, for citizens, like this:
ID CitizenRef RelocationDate City Surname
Hi,
We do have a production including a SOAP.OutboundAdapter that make a request to a .NET WCF Service. The response from that service vary in size. When it come to large one, we talk about maybe 8000 records (with 6-8 attributes per record) in xml, the adapter always give a timout. Even if we put a high number of seconds or set -1. After 1 1/2h still nothing get back. It's just standing there and waiting for ever.
Our .NET developer have look at it (on the WCF-service) and from ther point of view they say that it seems like Ensemle can't handle such big responses.
In .Net it.
I'm interested in different approaches on how to store user data in Caché. I'm assuming that application uses Caché security/Caché users and not a self-made authentication system.
Several approaches, I'm familiar with:
I'm revisiting some older projects that can benefit from the new JSON support and dynamic object capabilities in 2016.1 FT / 2016.2 FT. (Particularly, some of the really new features in the latest 2016.2 FT.)
For the particular thing I'm working on, it would be very handy to be able to merge objects, similarly to https://api.jquery.com/jquery.extend/. The closest thing I've found so far (in 2016.2 only) is:
Set o1 = {"a":1,"c":2}, o2 = {"b":1,"c":1}
Write "o1: ",o1.$toJSON(),!
Write "o2: ",o2.$toJSON(),!
Write !
Write "Merge two objects into a third (new) object, with values from o2 overwriting those from o1 when property names are shared: ",!
Set o3 = o2.$compose({"returnValue":o1.$clone()})
Write "o3: ",o3.$toJSON(),!
Write "o1: ",o1.$toJSON(),!
Write "o2: ",o2.$toJSON(),!
Write !
Write "Merge o2 to o1, overwriting the contents of o1: ",!
Do o2.$compose({"returnValue":o1})
Write "o1: ",o1.$toJSON(),!
Write "o2: ",o2.$toJSON(),!
I'm writing some custom functions for use in a routing rule. I have a few that are working, but right now I'm trying to use one that has no parameters. Typically this would be a sub instead of a function, but I'm not familiar enough with Cache to know what I need to do here.
Here is the code:
We heard from a customer who wanted to display a version number as a read-only production setting. During the build on the build server, this version number is added to the Production class. This works fine, and the Version is displayed in the Portal, but the customer wanted to write protect it, so the enduser can’t change it.
Looking at a property defined as follows:
Property SystemTime As %Library.TimeStamp [ SqlComputeCode = {Set {*}=$ZDATETIME($NOW(),3,1,0)}, SqlComputed ];
The documentation talks about using SqlComputed and SqlComputeCode with SqlComputeOnChange (specifying which events will trigger computation), and about using them with the Calculated keyword (so it's always computed). I don't see any specific explanation of the case above, though, when neither SqlComputeOnChange nor Calculated is specified.
This post is intended to share how we have implemented HL7 v.2.x in XML format in several Ensemble projects.
We have added to our local InterSystems Iberia GitHub repository a package which uses an approach that takes advantage of EnsLib.HL7.Message class.
More information here:
Given the following code:
I get <UNDEFINED>start+4^DeploymentTool *tstVar
I also tried setting the variable outside the start method but that doesn't work either. I realize I could pass tstVar to the TestIt() routine but I'm trying to create a couple variables that will be reused repeatedly so that doesn't really work.
Hello,
I am trying to log the output of csession in Linux. I try this command:
csession cache | tee myoutput.log
Although it works each new lines at screen output doesn't appear at row 1...
Any tip?
I am pleased to announce the third 2016.2 field test kit, 2016.2.0.590.0.
In the week since the last field test posting Development has made over a hundred fixes and improvements in Atelier, Enterprise Manager, Ensemble and Caché. Unlike the previous field test kit, though, in which the changes were distributed evenly over multiple areas and products, in this kit over half of the changes are associated just with Atelier.
Please download the kit and give it a try; the latest field test of 2016.2 is available HERE. And, as always, we welcome your feedback.
Steve Glassman, Director of QD
I've searched the ObjectScript reference for any instances of Upper, Lower or Case and the only thing is a case/switch statement. In all the documentation I can only find SQL and Cache Basic references for things like UCASE.
So how do I do this in ObjectScript?
For instance, if (ucase(dtype)="G") { }
Has anyone come up with a way to create a separate thread of processing that can achieve shared access to a set of objects created from the initials process? The situation is this. There is a large complex set of objects representing a business process. Some of these objects are in-memory only. The desire is to spin off a separate thread that could do some ancillary processing on this data set without slowing down the main process. Any thoughts?
Hi!
Are there any plans to support Kerberos authentication in Atelier to Caché connection?
Thank you.
Most of projects on Caché, obviously, written not only in Cache ObjectScript, and should contain sources in other languages. Such as js or css for web-projects or any others. And it would be pretty good, if I could see all of files in one project, and possible to edit all of them. How to be in this case ?
And I think it is not a good idea, to place all project's sources in one root folder. Our project contains over 3 thousands classes and routines, and it is too difficult to find anything in such folder. Is not a good for it to use Java-way, and place every package in subfolder ?
|
The minimum interval between invocations of the adapter by the Ensemble framework. For adapters that poll for external events, this is the polling interval. However, most polling adapters will process all inputs immediately if several are detected at one time. This is also the interval at which each Business Service will check for shutdown requests.
|
Is it seconds or what? The default is 15
Do to unforseen circumstances the Atelier build that was distributed with the Cache 2016.2 field test had certain incompatibilites which prevented it's effective use with the server that it was bundled with.
We are working on remediating this regretable situation and will provide a compatible Atelier in the 2016.2 field test refresh which is scheduled for today Monday, 1st of Februrary.
We sincerely apologize for any inconvenience so caused.
Hi,
Do you know how to export SQL errors to a text file from a terminal session in Caché?
Thanks
I'm designing a workflow for PHR via FTP. What I've done is create a single FTP adapter to pick up files from multiple customers. A router then accesses a lookup table and determines if a particular customer is allowed to send a particular message type to the state. If not, the message doesn't go out. It seems like everyone is against this approach (other than my CEO, thankfully), including Intersystems:
Our recommendation though is to create separate interfaces to retrieve PHR data from individual
participants. This configuration .
Are there any plans to translate Atelier to other languages (e.g. Russian) ?
Hi,
is it possible to integrate a csp file as the default page in the IIS 7?
I want reach http://localhost/csp/sys/UtilHome.csp over http://localhost/
Bill McCormick wrote in the GoogleGroup
"There was a known problem with this in the 5.0 release and has been
fixed. It will never work out of the box. You have to define a CSP
application of the name "/" - the config manager used to invalidate this
but putting it in the cpf worked - I forget if that is fixed or not.
After that it should all just work. Feel free to log an issue with
support if it still fails in anyway.
I am pleased to announce the next in the series of 2016.2 field test kits, 2016.2.0.585.0.
In the two weeks since the last field test posting Development has made over a hundred fixes and improvements in Atelier, Enterprise Manager, Ensemble and Caché.
In Atelier alone there were over a dozen changes including a fix for the incompatibility issue that Jamie Newton described in his posting of February 1.