Hi Tim,
Assuming you are extending EnsLib.MsgRouter.RoutingEngine, does this work for you?
Class User.MyRouter Extends EnsLib.MsgRouter.RoutingEngine
{
Method OnPrepareReply(request As %Persistent, ByRef response As %Persistent)
{
Set response=##class(Ens.StringContainer).%New()
Set cnt=$this.%ResponseList.Count()
For i=1:1:cnt {
Set messageHeaderId=$this.%ResponseList.GetAt(i)
Set messageHeader=##class(Ens.MessageHeader).%OpenId(messageHeaderId)
Set messageBody=$CLASSMETHOD(messageHeader.MessageBodyClassName,"%OpenId",messageHeader.MessageBodyId)
Set response.StringValue=messageBody.StringValue_"|"_response.StringValue
}
}
}

- Log in to post comments