I have a shape on a service visual overview linked to an element via the alias in the service.
However, when I remove that element from the service, the shape still shows on the service visual overview. I need to close and reopen the card/reload the visual overview for the shape to disappear. (Tried with and without the servicecontext option)
I've created a shape that dynamically generates a shape for every element in the service and filters based on the protocol.
This only shows the shape for the element I want. When removing the element from the service, the shape is now longer shown.
This is what I want. However, I'm wondering if there's another way to achieve it, without having to use dynamic shape generation to show a single shape.
That's correct. Shapes that are linked based on the name of a view, element or service do not get hidden upon removing the original object.
This was done so for performance reasons since sometimes we have thousands of shapes on the Visual Overview. Each of the shapes would then need to listen to changes of all elements, views and services because we're not just interested in deletion. We're would also need to listen to the creation of objects and renaming of objects because the link is based on the name.
I do believe we have made significant performance improvements for the Visual Overview over the years, so perhaps this is feasible now.
If I recall correctly, we do process the updates for shapes that are linked by a name that contains a wildcard.
We should be consistent when it comes to updating upon adding/deleting an object (be it in a service context or not). Feel free to create a task for this.
looks like when I add a * to link it to the element, the shape appears when adding the element to the servcie, but doesn’t disappear when removing the element from the service.