I have an element which needs to simulate 255 DCF interfaces and each DCF interface needs to have 4 properties.
Setting up the simulation executes following steps in one single QAction flow:
- Fill in interfaces table by using FillArray method
--> Software will create a DCF interface for each entry in that table - Get the DCF interfaces
- Assign properties to each DCF interface
The problem is that in step 2 the DCF interfaces aren't known yet in SLProtocol.
How can I make sure that all the DCF interfaces are available before continuing?
A (subscription) event is sent whenever a change happens to an interface. You could subscribe to InterfaceInfoEventMessage (filter this on your simulation element) and count them.
Note that this is an internal API and we do not recommend using this, as it is not officially supported and we cannot guarantee that it will still work in the future. As a rule, you should avoid using subscriptions, as these are subject to change without notice. We recommend to instead always use the correct UI or automation options provided in DataMiner Automation or through our web API.
Thank you for the suggestion Sebastiaan. This is something that I will definitely try in protocols. I think that it’s a bit tricky to use this in automation since I see this more as a linear flow and this would involve a kind of multithreading.