· Aug 15, 2022

How to execute a class method of a process periodically?

Hi all, 

I have a requirement to periodically poll a URL to fetch some XML data based on a list of query data, lets say every hour, and map what's returned to HL7 then send downstream, I mostly have everything contained within a business process and DTL but I'm lacking a way of invoking the process every X minutes, 

The client has a prefence for as much as possible to be done via out of the box components in the standard HL7 model of  "Service --> Process/Rule/DTL --> Operation" within the Web UI, 

I'm looking for something to act as the Service part that will trigger the  "Process/Rule/DTL --> Operation" parts, 
In Rhapsody we might use a Timer component to send a blank dummy message periodically that triggers some javascript logic and the rest of the flow etc., 
What could I use to provide the same functionality in HealthShare? 

Thanks for your help :)

Product version: HealthShare 2020.1
Discussion (5)1
Log in or sign up to continue

Use a Business Service with a basic Ens.InboundAdapter:

Class test.BS Extends Ens.BusinessService

Parameter ADAPTER = "Ens.InboundAdapter";

Method OnProcessInput(pInput As %RegisteredObject, Output pOutput As %RegisteredObject) As %Status
	$$$LOGINFO("In OnProcessInput")
	Quit $$$OK


Add it to production and set Call Interval to X seconds (and Pool Size to 1). That would ensure OnProcessInput being called every X seconds after it's last completion.