##class(Ens.MessageHeader).ResendDuplicatedMessage()
Using a Workflow Task within HealthShare Provider Directory, when a user clicks on Resubmit message within my Business Process, I check the status of the response. If the response is "Resend Message", I have my Business Process executing the following....png)
set tSC = ##class(Ens.MessageHeader).ResendDuplicatedMessage(context.SessionID)
if$$$ISERR(tSC) $$$LOGSTATUS(tSC)the context.SessionID is the Session ID of the message as it is being pass thru the Business Process. Does anyone see why that would not work off hand?
Comments
Hi,
The HeaderId and Target are required parameters for tihs method.
ClassMethod ResendDuplicatedMessage(pOriginalHeaderId As %String, Output pNewHeaderId As %String, pNewTarget As %String, pNewBody As %RegisteredObject, pNewSource As %String, pHeadOfQueue As %Boolean) As %Status
Can try like Set tSC = ##class(Ens.MessageHeader).ResendDuplicatedMessage(context.tId,,context.pNewTarget)
Thanks,
When you say pNewTarget, does that mean the Object that the message should be sent to?
Yes Scott