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
Discussion (2)0
Comments
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?
Thank you, I'm gonna check it out.
Using <trace>, string is truncated.