Question Jimmy Christian · Jul 5, 2022 Shutdown Ensemble Business Service upon Warning in the Event Log Hello, We have a scenario where a bad message(With control character in some fields) is coming frequently in our Standard HL7 Business Service. I do see the process gets shut down because of E=D action code. I also see the service logging an "Warning" about the bad message. But service is not shutting down. Is there a way to handle this error right at the service to avoid multiple processes going down? Not sure if we can create a task, which audits the service logs every few minutes. But that will involve some coding and checking of time when the errors happens. #Business Service #Ensemble 0 4 0 444
Question Jimmy Christian · May 18, 2022 How to access the Settings of HL7 Router from within the HL7 Rule Hello, I want to access the HL7 Router settings from within the HL7 rule. Goal is to create a New class by extending "EnsLib.HL7.MsgRouter.RoutingEngine". Then create a PARAMETER ProcessMessage which can be set to an integer value for the HL7 Router. Create a Rule class and based on the value of this setting ProcessMessageprocess/not process the messages. #Business Rules #HL7 #ObjectScript #Ensemble 1 15 0 448
Question Jimmy Christian · Nov 17, 2021 Passing pattern in Ensemble function Hello, I am trying to pass a pattern in the Ensemble function Matches(val,pat) in Business Rule as below. Eg. #ObjectScript #Ensemble 0 2 0 269
Question Jimmy Christian · Jun 16, 2021 Bulk inserts using SQL in Ensemble Hello Community, I am trying to insert multiple values in a table. Below is the simple sql statement. Insert Into TableX values ('Name', 'Address', 'Phone') How can i do multiple inserts(rows) in one single statement? #SQL #Ensemble 1 14 0 876
Question Jimmy Christian · Jun 3, 2021 How to implement %ZEN.Dialog.confirmationDialog Hello, I need to create a dialogbox on my zenpage to confirm a Delete operation. I tried using below code on in a my client side method but its creating a blank dialog box. zenLaunchPopupWindow('%ZEN.Dialog.confirmationDialog.cls','confirmationDialog','resizable,width=380,height=180'); Is there a way i can create a Dialog box with text "Do you want to delete" and two buttons "Yes" and "No" and store the response in the calling client/server method. Thanks, Jimmy Christian. #ZEN #Caché #Ensemble 0 2 0 146
Question Jimmy Christian · Dec 27, 2019 Read File with HL7 messages and coun number of FT1 Hello team, I am trying to do a basic read file of HL7 messages. Need to count how many FT1 segments are there in each file and how many messages are in each file. Any help will be appreciated. I have the stream object. Just need to loop through the stream and get the info in some way. Any help will be appreciated. Thanks, Jimmy Christian. #ObjectScript #Caché #Ensemble 1 4 1 565
Question Jimmy Christian · Dec 18, 2019 Batch header and footer in Ensemble File Operation Hello community, I am receiving a HL7 message over TCP connection. #FTP #HL7 #Ensemble 0 4 0 794
Question Jimmy Christian · Nov 23, 2019 REST Api Response META NAME ROBOTS Hello community, I have a very simple REST API connection doing a POST of JSON messages via AZURE APIM. It worked successfully for few weeks until a day ago when i started receiving a bad response as below. <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"><meta name="format-detection" content="telephone=no"><meta name="viewport" content="initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><script type="text/javascript" src="/_Incapsula_Resource?...................................... #API #REST API #Caché #Ensemble 0 2 0 401
Question Jimmy Christian · Aug 6, 2019 EnsLib.File.PassthroughOperation Hello , Need some help to write a Request message to the File using EnsLib.File.PassthroughOperation class. Request object is sent to the Ensemble operation has below simple structure. #ObjectScript #Ensemble 0 2 0 954
Question Jimmy Christian · Aug 1, 2019 Constraint Editor Business Rule Source Hello Community, For the Business Rules in a process i want to use a constraint where source could be FromA or FromB. But looks like the constraint does not allow multiple source values. Is there a way to provide multiple source in Constraint? Or is there a way in Rules to identify the Source ? Thanks Jimmy Christian #Business Rules #Ensemble 1 5 1 360
Question Jimmy Christian · Jul 30, 2019 Disable ENSEMBLE operation . Throw error Hello Community, How do i disable an operation explicitly based on a value in a variable? I set the ReplyCodeAction to E=D. In the Operation Code i am throwing an explicit ERROR THROW ##class(%Exception.General).%New("Shutting Down Operation",999,,"My own special exception") But my operation still remains up. Any suggestions please will be appreciated. #ObjectScript #Ensemble 0 6 0 309
Question Jimmy Christian · Jul 19, 2019 Http Outbound Adapter Trace outgoing message Hello All, I have a outbound Http adapter. How do i see the HTTP Request which is going out using Message Viewer or Trace? I want to see the entire message with the Headers and Body. Thanks, Jimmy Christian #REST API #Ensemble 0 6 0 524
Question Jimmy Christian · Jul 16, 2019 Http Response Parsing JSON string or stream Hello community, I am trying to parse the below HttpResponse in Cache. Cannot get the Iterator to work. Is there a single loop which can parse both or single messages and grab the error? {error:[{ txt1:'error msg1'}, { txt2:'error msg2'},]} {error: {txt1:['error msg1', 'error msg2']} Thanks, Jimmy Christian #JSON #REST API #Caché 0 16 0 2.2K
Question Jimmy Christian · Jul 11, 2019 POST Not working for REST API - Method not found Error Hello Community,Hope someone can assist me to POST a JSON to the below URL. It works perfectly with POSTMAN. But when trying with cache/Ensemble i receive Method not found errorBelow is the configuration. #REST API #Caché #Ensemble 0 7 0 2.5K
Question Jimmy Christian · Jul 10, 2019 OpenWeathermap http error when making REST call Hello , I am trying to make a REST call using the example given in documentation for Creating REST Services and Clients with Ensemble. Class Test.REST.WeatherOperation Extends EnsLib.REST.Operation But i receive below mentioned error. If anyone can help me out here. #HTML #REST API #Ensemble 0 6 0 453
Question Jimmy Christian · Jun 25, 2019 Cache Ensemble Hello, Working on to learn very basic CUSTOM Business Service which sends to a EnsLib.File.PassthroughOperation. But operation is not writing to File and erroring out (No Stream contained in StreamContainer Request")'. How do convert the object to STREAM and wrap in the StreamContainer so the operation does not error and write to a file. Thanks. Persistent Class #Business Operation #Business Service #ObjectScript #Ensemble 0 8 0 573
Question Jimmy Christian · Jun 17, 2019 REST Beginner Question Hello,I am taking some intro lessons in REST from the online courses. Below is a very simple code i wrote. But when i try to see the output by entering the urlhttp://localhost:57773/rest/coffeemakerapp/coffeemaker i get an error "This page isn’t workingIf the problem continues, contact the site owner.HTTP ERROR 401Thanks,Jimmy #Beginner #JSON #REST API #Caché 0 7 0 781
Question Jimmy Christian · May 31, 2019 Cache Sql Record set copy to a table Hello all, I have a Recordset object which contains data from a table "XYZ". Currently i use this object to extract data using %Get(COL1,COL2...) in a loop and than pass it to a function which inserts the data into another dynamically created Table "ABC" for each record. This takes a lot of time when 100's of records. Is there a way i can directly copy a RecordSet to a dynamic table without looping through..? Something like copy Recordset (COL1,COL2..)--> "ABC" Thanks, Jimmy #SQL #Caché 0 6 0 868
Question Jimmy Christian · May 14, 2019 Zen Page Table From another namespace Hello,Need some technique to solve an issue about zen page table.- "xyz" table exists in all my namespaces.I have a simple Zen page in "USER 1" namespace. It has a tablepane which pulls data from "xyz" table.OnLoad of the page i want the zenpage to pull the data from "USER 2" namespace with same "xyz" table name.Zenpage has to be in "USER 1" namespace #ZEN #Caché #Ensemble 1 10 2 328
Question Jimmy Christian · May 8, 2019 Cache Studio Error Hello, I am facing an issue where i am not able to start the Healtshare environment. #Studio #Caché 0 5 0 595