Hi, Community!
Please find a new session recording from Global Summit 2017:
Building Durable APIs: New REST Tooling
Hi, Community!
Please find a new session recording from Global Summit 2017:
Building Durable APIs: New REST Tooling
Hi Guys,
Can you please guide me to get rid of this issue. Please find the image files with this post.
Please let me know, before we are developing an API what are all the setup/Configuration(Apache/web server) need to do in my machine.
If any lead would be appreciated.
I don't know, in XMLNamespace parameter which URL need to use.


.
Thanks,
Arun Kumar Durairaj.
DB Intersystems size = 635 gb, while backup size = 669 gb. Cache version is 2013.1
I am using cache for Cobas infinity IT solutions for medical lab information system.
Any idea why is this happening? When the DB was smaller, the backup was less in size. but later I noticed this issue
thanks
Yasser
Hi All, Can you please tell me how to get the Size of the Global Subcript. In Cache 2016 - they are using ##Class(%GlobalEdit).GetGlobalSizeBySubscript() For Older version how to get the GlobalSize of the Subscript. Because the method is not exist in Older Versions and all.
Hi, folks!
Suppose you have a Caché class with %String property which contains relatively large text (from 10 to 2000 symbols).
The class:
Class Test.Duplicates Extends %Persistent
{
Property Text As %String (MAXLEN = 2000);
}And you have thousands of entries.
What are the best options to find entries which are duplicates on this property?
Hi, Community!
This post is a digest of the Developer Community postings in November 2017.
Most viewed
Announcement: Atelier Is Only Available as an Eclipse Plugin 376
Advent of Code 2016 Day1: No Time for a Taxicab 194
Where is the equivalent of INSPECTOR in Atelier ? See ! 164
How to find duplicates for a large text field in Caché Objects? 160
Atelier 1.1 Beta Updates – October 2017 144
DeepSee Web: InterSystems Analytics Visualization with AngularJS. Part 1 133
What are all the ways an Object Property can be expressed? 127
The 'unlimited' UNIQUE index 126
How to get the Size of the Global Subscript 124
Software-Defined Storage and Containers 104
Summary on Local Variable Scoping 100
How long does it take to encrypt a database? 96
... but let’s first look at error handling.
Hi folks!
Is there a one line command to map class package A to Namespace ASPACE?
Hi, Community!
Today there are two main settings for your email notification subscriptions.
1. Subscribe to all new posts, all comments, all answers
You can do it in your subscription settings in the Content Types. Click on My Account, go to Subscriptions and click on Content types tab:
In this case, you'll get only one notification for every new article or question posted on DC and every answer and comment if you checked this option.
Here are some recipes with this option.
1. Receive all the new posts notifications (without answers and comments in it):
Turn on Post checkbox.
2.
In short, I wanted to react on CPUusage warnings and alerts with my own actions. It seemed that it was possible in my Caché version (2015.1):
http://docs.intersystems.com/cache201513/csp/docbook/DocBook.UI.Page.cl…
But all my attempts silently failed. Callback code was as simple as possible:
Class %z.Monitor.Health Extends SYS.Monitor.Health.AbstractCallback{/// This method is called for every Health Monitor sensor reading.<br>///...
Method Callback(type As %Integer, sensor As %String, value As %String, mean As %String, sigma As %StriOn the "General" tab of the Rule Editor there's a field called "Production Name". The doc says (my emphasis):
The name of the production in which you expect to use this routing rule.
Does anyone know where this value is used?
Is it safe to set this field blank?
Greetings.
We have one vendor who requires us to send data using TCP
through an SSH port forwarding tunnel that is set up in advance.
UNIX scripts maintain this, and the Ensemble interface uses a TCP Adapter.
I was thinking that Ensemble could maintain the SSH tunnel,
which would improve our detecting of issues.
Has anyone done something like this?
I see that the class %Net.SSH.Session has a method ForwardPort,
but it doesn't stand up the tunnel by itself. Instead, it appears
to return a handle into the tunnel. It will work a bit differently.
Thanks
Seth
• method ForwardPort(pRemoteHost As %S
I have list of business services in my ensemble production.
Often, my business services which are in green color turns to red color and asking for update and restart the services.
I would like to know, how to identify which business services are turned to red color.
Help me restart the service individually by code.
Thanks,
Ashok
Hi,All,
I did a small coding for the HTTP request and HTTP response. When i tried to use a server with ping i was able to get a response from the HTTP request. But when i tried the same with HTTP response i am getting a empty value in the response why is that?
Thanks in advance.
aa=$zwc(411,1,1,3)/*$bit(1,3,5)*/
bb=$zwc(403,1,0,2)/*$bit(1,3)*/
Is there a handy function to test wether one bit string is covered by another one bitstring? For example, "bb" is covered by "aa".
I currently implement this by one AND operation and then do a bitcount, I just want to know any default function is already out there.
Thanks.
Hello,
I was wondering if there is a way to maybe temporarily alter the [Private] tag dynamically or any other way to run a Unit test against class method, which has been labeled as [Private]?
I mean, I understand there is a workaround to create a non private class method inside this class, which will in turn call this private method and run a Unit test on the non private method, but I am looking for a way to do this without altering the original class.
Thank you,
Alex
Guys,
Can you please guide me to create a RESTful API in our cache with JSON response.
Caché will not change the cryptographic settings in an existing TLS configuration when you upgrade. This means that unless you've updated them yourself, you're still using the values from the very first version you started using SSL in.
If you've upgraded since creating your TLS configurations, take a moment to look at the enabled protocols and ciphersuites to make sure you've enabled all the versions you want, and disabled the old versions you don't want.
When executing a business process I'd like to share the Login Token from an external system retrieved via one of my business operations across multiple process instances. This means I need to persist the token somewhere. What would be the best approach/pattern to implement this?
The primary idea I had was to store the token and a timestamp in a persistable object and then write a single method in the Business Operation that retrieves the token.
Dear community!
I'm currently working on MessagePack implementation by using Cache ObjectScript.
I try to choose suitable representation for binary array.
Should I use $lb or $c or smth else for it?
How do I set an URL when I post a httpRequest via SendFormArray of my Ensemble Business Operation. Here is my code:
Class CareHome.RestApiClient Extends EnsLib.REST.Operation
{
Parameter INVOCATION = "Queue";
Method Login(pRequest As CareHome.Request.LoginRequest, Output pResponse As Ens.StringResponse)
{
set tURL = ..Adapter.URL_"login/login"
set httpRequest = ##class(%Net.HttpRequest).%New()
set httpRequest.ContentType="application/json"
do ..ObjectToJSONStream(pRequest,.jsonStream,"aeliw")
set httpRequest.EntityBody = jsonStream
set tSC = ..Adapter.SendFormData(.tHttpResponse,"POST",httpReques
Initial questions have been answered. Expanded the post with actual code (see below)
So, I'd like to update one (and preferably) more context-fields in my ensemble BPL business process based upon the information in the request that initiates said BPL proces. I got a few questions about that:
1.First, I can't get it to work.Specifically, in the BPL process I call the business rule with my request as context and expect it to put it results in context.Boolean.The business rule nicely updates the context.Boolean but the conditional logic looks at specific fields in the request (i.e.
I have an application in Cache 2013 (No Ensemble) which need to consume a REST web API over internet.
Can somebody please help me by pointing out the documentation or provide me code sample for consuming the REST API from a routine/class.
I am using Cache 2008 (No Ensemble) .
Hello!
Suppose I have a package with classes which I want to rename. All these classes are persistent and they already have a lot of data stored.
The best I can think of to do is the following:
5. finishes successfully.Hello.
We're about to implement an application that could use WebSockets intensely so before we head to that direction we need to figure out about how some few things work. That being said, anyone care to give me some enlightenment?

This is (the end) of a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
This is the 25th and last challenge of the 2016 series of Advent of Code.
In this challenge, you have to send a signal out, using the assembunny code interpreter that we had to make in earlier challenges.
There is one extra instruction added to the assembunny language, which outputs a value (out x).
Using the instructions as input (see http://adventofcode.com/2016/day/25 for the
Greetings!
Hopefully someone has an answer on this, I cannot find any example or understand from the documentation how to acheive this.
I have a SOAP header subclass
Class AddressType Extends %SOAP.Header
{
Parameter ELEMENTQUALIFIED = 1;
Parameter MAXLEN;
Parameter NAMESPACE = "urn:registry:1";
Parameter XMLNAME = "urn:LogicalAddress";
}
In my %SOAP.WebClient I use it like this:
set customHeader = ##class(AddressType).%New()
do ..HeadersOut.SetAt(customHeader,"AddressType")
Which results in
...
<SOAP-ENV:Header>
<urn:LogicalAddress xmlns="urn:registry:1" xmlns:hdr="urn:registry:1"></urn:LogicalAddress>
</SOA
Is there any way to specify in which order indices are built during:
So far I think they are built by name order.
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
Today, you need to find your way through a maze (again). There are 8 points of interest in the maze, and you have to visit them all, starting with point 0.
You may visit some points more than once, in random order. The challenge is to find the shortest path through the maze while visiting all points.
The maze looks a bit like this :
###############################################################
Dear community!
I have problem with index NULL value. Unique index doesn't work for this case. If I use insert and one of parameter is "NULL". Message of constraint doesn't appear and row is inserted into table successfully. How Can I use index with NULL?
Class TestClassIndx Extends %Persistent
{
Property name As %String [ Private ];
Property age As %String [ Private ];
Property country As %String [ Private ];
Index IndextestUniq On (name, age, country) [ Unique ];
}
INSERT INTO TestClassIndx (name,age,country) VALUES ('1','2',NULL)
Best Regards