Is it possible to get the window from the Rules engine and use it in another plugin?

I am trying to make an alarm plugin for Milestone, but i need to use the cameras Configurable events to activate the alarms.
So is it possible to get the window used in the Rule engine and open it within another Plugin? or get all the Configurable events in a list?

John

You can check the config API client example on GH (component examples)

1 Like

You cannot reuse the window that is part of the Rule Wizard in the Management Client. That UI is internal to the Rules Engine and not exposed for reuse in plugins.

What you can do instead is retrieve the event definitions via the Configuration API (REST API, Configuration SOAP API, MIP SDK (strongly typed VideoOS.Platform.ConfigurationItems))

The Config API Client sample is a good starting point to explore what is available (as previously suggested).

This example shows how you can list configurable device events using the MIP SDK:

private void ListEvents()
{
ManagementServer ms = new ManagementServer(EnvironmentManager.Instance.MasterSite.ServerId);
var eventGroups = ms.EventTypeGroupFolder.EventTypeGroups.FirstOrDefault(x => x.DisplayName == “Device - Configurable”).EventTypeFolder.EventTypes;
foreach (var ev in eventGroups)
{
label1.Text += $“Event {ev.Name} - {ev.DisplayName}” + Environment.NewLine;
}
}

Hi Bo

Thanks a lot for that, it solved my issue.

Regards John