Skip to main content
Version: Current

Process.GetActiveBPAProcesses

Description​

Gets the list of all active BPA ProcessInfo from the connected AI Command Center.

Signature [C#]​

Task<List<ProcessInfo>> GetActiveBPAProcessesAsync();

Properties​

Input​

None.

Output​

TypeDescription
Task<List<ProcessInfo>>Returns all active BPA processes information.

Remarks​

Use GetActiveBPAProcessesAsync API to get a list of all active ProcessInfo from the connected AI Command Center.

Example​

C#
public async Task GetActiveBPAProcessesAsync()
{
IControlRoomContext context = LoginControlRoom();
try
{
List<ProcessInfo> processes = await context.Processes.GetActiveBPAProcessesAsync();
foreach (ProcessInfo process in processes)
Console.WriteLine(process.Name);
}
finally
{
context.Close();
}
}
Connection helper
public IControlRoomContext LoginControlRoom()
{
string RequiredSetting(string name) => Environment.GetEnvironmentVariable(name) ?? throw new InvalidOperationException($"Set {name} before running this example.");
string serverUrl = RequiredSetting("INTELLIBUDDIES_SERVER_URL");
string userName = RequiredSetting("INTELLIBUDDIES_USERNAME");
string password = RequiredSetting("INTELLIBUDDIES_PASSWORD");
string connectionString = $"ServerUrl={serverUrl};UserName={userName};Password={password}";
IControlRoomContext context = new ControlRoomContext(connectionString);
context.Open();
return context;
}

See Get started for namespaces, configuration, and context cleanup, and SDK usage for error handling.