Question
· Feb 4, 2019

drawing the lines between processes and operations when using custom classes

Hi,

I have a custom classes that that I use with  EnsLib.SQL.OutboundAdapter to convert HL7v2 messages to SQL INSERT statements to write results to an SQL database.

Weirdly the management portal is not drawing the the lines between my process and operation when viewing my production on the ' Ensemble > Production Configuration' screen.  Clicking the green dot flashes the 'computing connections' message, and highlights my operation, but no lines get rendered: 

I am using custom classes, but they extend Ens.Request,  Ens.BusinessProcess and Ens.BusinessOperation so I'm confused why the lines are not drawing automatically.

Do I need to add a directive to my classes to enable this functionality?

Kind regards, 

Stephen

--

EDIT: 

I believe these are the relevant snippets of code: 

Paremeter 'TargetConfigName'

 Parameter SETTINGS = "TargetConfigName:Basic:selector?multiSelect=0&context={Ens.ContextSearch/ProductionItems?targets=1&productionName=@productionId}";

/// Defines the destination operation or process (e.g. Main router)
Property TargetConfigName As %String(MAXLEN = "");

send the message to the operation: 

 set tSC = ..SendRequestSync(..TargetConfigName,tPathResult,.tResponse) 
Discussion (7)1
Log in or sign up to continue

You'll need to override the OnGetConnections method by inserting the snippet below in your custom business process(es):

ClassMethod OnGetConnections(Output pArray As %String, pItem As Ens.Config.Item)
  {
                Do ##super(.pArray,pItem)
                If pItem.GetModifiedSetting("TargetConfigName",.tValue) {
                                For i=1:1:$L(tValue,",") { Set tOne=$ZStrip($P(tValue,",",i),"<>W")  Continue:""=tOne  Set pArray(tOne)="" }
                }
  }