Question
· Mar 5, 2020

Get SourceConfigName and TargetConfigName in a BPL

We need to get service's both source and target names. We have checked that we could obtain them in the service:

set ^sourceName = ..#SERVICENAME

However we would like to get it directly from the BPL. We have tried:

Set SourceConfigName = ..%PrimaryRequestHeader.SourceConfigName
  $$$LOGINFO("SourceConfigName "_SourceConfigName)

 

And the compiler outputs:

ERROR: Procesos.HistoriaClinica.ConsultaDatosHCEPaciente.Thread1.cls(S161+247) : MPP5376 : Method or Property '%PrimaryRequestHeader' does not exist in this class.

 

How could we access to %PrimaryRequestHeader property inside Ens.BusinessProcess class which is extended by Ens.BusinessProcessBPL, get the Ens.MessageHeader and then obtain its SourceConfigName and TargetConfigName?

Discussion (2)2
Log in or sign up to continue