Hello everyone,
Previously we had only one diagram per FTA model and we were able to access the top event of a diagram with this hook :
diag.canvasElement.rootNodes[0].event
Now that we have multiple diagram per FTA model, this doesn't work anymore (rootNodes is a FTA model element).
I think I can access the top event by doing something complicated like
diag.diagram.children[0].element
But I am not sure that children[0] will always be the top event.
Can you confirm that this will always be the case?
Best regards,
Adrien