Question
· Jan 5, 2021

How to synchronously invoke a Business Operation from a classMethod without using a business service

Hello,

I am trying to find out if it is possible to invoke a Business Operation from a class method without using a Business Service.

I have the following code but was wondering if it can be done without using a Service.

tService = ##class(Ens.Director).CreateBusinessService("Business Service Name",.service)
service.SendRequestSync("targetBusinessOperation",request,.response)

I tried creating an instance of Ens.BusinessOperation and then call SendRequestSync but that didn't seem to work.

Any better ideas anyone? 

Thanks in advance.

Utsavi

Product version: HealthShare 2016.1
$ZV: Cache for Windows (x86-64) 2016.1 (Build 656U) Fri Mar 11 2016 17:42:42 EST [HealthShare Modules:Core:14.02.2415 + Linkage Engine:14.02.2415 + Patient Index:14.02.2415 + Clinical Viewer:14.02.2415 + Active Analytics:14.02.2415]
Discussion (1)0
Log in or sign up to continue