Sparx Systems Forum

Discussion => Bugs and Issues => Topic started by: adepreter on December 13, 2017, 03:28:10 am

Title: Virtual Connectors do not execute Shape Scripts
Post by: adepreter on December 13, 2017, 03:28:10 am
When we create a virtual connector, only the original item is displayed as requested by the shape script.

The ghost is ill-mannered as it simply ignores the shape script. I mean the ghost doesn't bother and it shows as a UML element.

Is there a trick for taming the ghost in the shape script or is it simply a bug?

If it is a bug (ghosts can also have bugs), will this be fixed for version 14?

Cheers,
Alain
Title: Re: Virtual Connectors do not execute Shape Scripts
Post by: qwerty on December 13, 2017, 08:15:15 am
You need to report it via the link below in the Support section. It's most likely a bug. If you believe that crossed fingers help: start soon. They announced V14 already.

q.
Title: Re: Virtual Connectors do not execute Shape Scripts
Post by: Simon M on December 13, 2017, 08:52:17 am
If you're talking about Virtual Connector Ends...

It doesn't draw the shape script.
There's no way to make it draw the shape script.
No, it's not a bug.
Title: Re: Virtual Connectors do not execute Shape Scripts
Post by: Paolo F Cantoni on December 13, 2017, 10:56:56 am
Alain,

See my recent posts (last few months) on Virtual Connector Ends.  It will also alert you to other problem you may come across.  I've come up against the same kinds of problems and I've made an analysis of why they occur and proposed a possible solution.  Essentially, the implementation is "less than optimal".

The idea is fine, it just needs a different (and I would argue, more logical) implementation.

Paolo
Title: Re: Virtual Connectors do not execute Shape Scripts
Post by: adepreter on December 13, 2017, 09:46:59 pm
OK. Let's say it is an incomplete implementation and as a result, virtual connectors are useless when MDGs are used.

I wonder what is the percentage of users that do not use MDGs?
Title: Re: Virtual Connectors do not execute Shape Scripts
Post by: Geert Bellekens on December 13, 2017, 09:59:41 pm
OK. Let's say it is an incomplete implementation and as a result, virtual connectors are useless when MDGs are used.

I wonder what is the percentage of users that do not use MDGs?
Probably lower then the percentage of users that don't use virtualized connector ends.
I never use those (and I advice all my customers not to use it) because of the weird implementation. I'd rather stick with the old limitation of having maximum one representation of an element on a diagram.

My feeling is that, in most cases using virtualized connector ends hides a more fundamental misunderstanding of how something should be modeled. There are exceptions of course, but usually it's easier to simply forbid it's usage then to verify all of the usages to make sure they are valid.

Geert