Don't create message view when advicing in certain cases

Issue #399 duplicate
Matthias Schoettle created an issue

When advicing an operation of an extended aspect, a message view is created. This is due to the fact that a copy of that operation needs to be created in the extending aspect and a mapping established between the two.

However, a new message view should not be created. Instead, a message view reference should be created.

Until we figure out how to properly how to import classes and operations from extended aspects in order to see, extend and advice them, a workaround is needed in order to allow this to be done through the tool (and not just on a model basis).

Instead of always creating an empty message view, if none exists for the operation, an additional constraint should check whether the operation is mapped, and the mapped operation has a message view. In that case, a MessageViewReference needs to be created.

Also see #312.

Comments (3)

  1. Log in to comment