
How to run a process on an interval or schedule?
When I started my journey with InterSystems IRIS, especially in Interoperability, one of the initial and common questions I had was: how can I run something on an interval or schedule? In this topic, I want to share two simple classes that address this issue. I'm surprised that some similar classes are not located somewhere in EnsLib . Or maybe I didn't search well? Anyway, this topic is not meant to be complex work, just a couple of snippets for beginners. So let's assume we have a task "Take some data from an API and put it into an external database" . To solve this task, we need: Ens.BusinessProcess , which contains an algorithm of our data flow: How to prepare a request for taking data, how to transform the API response to a request for DB, how to handle errors and other events through the data flow lifecycle EnsLib.REST.Operation for making HTTP requests to the API using EnsLib.HTTP.OutboundAdapter Ens.BusinessOperation with EnsLib.SQL.OutboundAdapter for putting data into the ext
Continue reading on Dev.to Tutorial
Opens in a new tab



