Question Jorge Manuel García Benítez · Jan 25, 2018

Business Operation to see trace

Hi guys,

I have a technical question. I have a Ens.BusinessOperation which contains a main method with parameters "In" As Ens.StreamContainer and Output "Out" As Ens.StringContainer. Return type is %Status.
Can this method just do "Quit $$$OK"?.
Currently this BO is used for see messages in Full Trace View.
It is a correct way to proceed?

Thank you

Comments

Eduard Lebedyuk · Jan 25, 2018

You can use Ens.Response class for an empty response and you need to init it:

Method OnMessage(request As Ens.StreamContainer, Output response As Ens.Response) As %Status
{
    set response = ##class(Ens.Response).%New()
    quit $$$OK
}

If you only want to see streams why not use <trace> in BP?

0