Hello,
I had performance issues with a OCL script and found that I can create a set of medini element in OCL like this and reuse it the 10 time I was calling allInstances.
let variableName : Set(fta::EventNode) = fta::EventNode.allInstances()->select(event | event.represents = self)
in variableName