Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA Pipeline Operations for Liquids

FlowNetworkListStations Business Logic Tier (BLT)

  • Last UpdatedApr 24, 2025
  • 2 minute read

You can use the FlowNetworkListStations Business Logic Tier (BLT) to provide a list of stations for the specified Flow Network. Executing this BLT will return an ordered list containing a row for each station in the Flow Network.

Parameters

Name

Type

Optional

Output

Description

FlowNetworkName

string

False

False

This input parameter specifies the name of the Flow Network for the stations you are looking for.

Result

int

False

True

This parameter indicates the execution result. It will return a 0 for success and a non-zero value if an error occurs.

Message

string

False

True

This output parameter will provide a result message after execution.

Results

Name

Type

Description

Name

IDynamicRecordCollection

This is a collection of station names from the Flow Network.

A blank row will be inserted between rows containing names to indicate a disconnection in connectivity between stations.

FlowNetworkListStations BLT Programming Example

The following is an example of how you can program using the FlowNetworkListStations Business Logic Tier (BLT):

String flowNetworkName = "AT_LongLine";

BLTParameterValueAccessor result;

BLTParameterValueAccessor message;

var bltClientFactory = new BLTClientFactory();

using (var client = bltClientFactory.Create("FlowNetworkListStations"))

{

client.AddParameter(flowNetworkName);

client.AddParameter(out result); //Result is an out param

client.AddParameter(out message); //Message is an out param

client.Execute();

if (Int32.TryParse(result.Value.ToString(), out int r) && r != 0)

{

Console.WriteLine("FlowNetworkListStations failed, error:" +

message.Value.ToString());

}

else

{

if (client.GetResults().Count > 0)

{

var results = client.GetResults();

var records = results.GetRecords("OrderedFlowNetworkStatonList");

foreach (var record in records)

{

// Do something with the stations

}

}

}

}

FlowNetworkListStations Assembly Programming Example

You can reference the assembly bobjFlowNetworkListStations.dll inside an application to invoke the Business Logic Tier (BLT) functionality directly.

The following is an example of how you can program using the FlowNetworkListStations assembly inside an application.

Note: This application must be running on an AVEVA Enterprise SCADA RealTime server with AVEVA Pipeline Operations for Liquids installed.

string flowNetworkArgumentName = "model_name_in_database";

var stationListObject = new bobjFlowNetworkListStations.bobjFlowNetworkListStations();

try

{

      DataTable data = stationListObject.Execute(flowNetworkArgumentName);

      foreach( DataRow row in data.Rows)

      {

            Console.WriteLine("name of station: " + row["Name"].ToString());

      }

}

catch(bobjFlowNetworkListStations.Model.FlowNetworkListStationsException ex)

{

      Console.WriteLine("Error code " + ex.Result + " " + ex.Message);

}