Hi Dojo
A Lifecycle Service Orchestration (LSO) script needs to set alarm templates on certain elements when they are getting booked. These elements are child Dynamic Virtual Elements (DVE). To set the alarm templates, I would need to know the ID's of these child DVE's.
For now, my approach is to cast the Skyline.DataMiner.Net.Messages.Resource object to a Skyline.DataMiner.Net.ResourceManager.Objects.FunctionResource object as this makes the ID of the parent DVE available. But I seem to be stuck here.
SrmResourceConfiguration[] resources = srmBookingConfiguration.GetResources().ToArray();
foreach (var resource in resources)
{
FunctionResource functionResource = resource.Resource as FunctionResource;
Element element = engine.FindElement(functionResource.MainDVEDmaID, functionResource.MainDVEElementID);element.SetAlarmTemplate(alarmTemplateName);
}
What is the best approach to be able to retrieve the element ID's of these child elements?
Thank you in advance!
Kind regards
Hi Michiel,
A possible solution is to add the element info of your DVE as property on the resource.
Hi Jens, thank you for your answer! To be honest I was hoping that the ID’s would be available in one of the resource-related objects without defining extra properties but okay, we can consider your suggestion. Much appreciated!