Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community.
When overriding the Service of a Thing Template or Shape one does not have access to the base implementation. From my point of view this is a basic feature of the template approach.
Often I only want DerivedTT.DoSomething to execute the BaseTT.DoSomething plus calling a Service extra, do extra logging or similar.
A copy is even dangerous in this place because when changing BaseTT.DoSomething it has no impact on the copied code in DerivedTT.DoSomething, e. g. when fixing a bug.
The suggested solution does not help me at all. I do not want to SEE but to CALL the base service.
I found an article on PTC support pages describing my request with some other words, obviously I am not the first asking for this.
Hello, I am not sure that the intent of this idea has been really understood ! The aim of such demand is to have a model which is really extensible.
As described, if we want to add only one line in the base service, into the derived service, we need to copy paste + adding the line. But if later one, we change the base service, we also need to update everywhere it has been derived.
It would be something really useful for development & maintenance.
It's exactly like super() in JAVA.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.