Hi Eve,
I think we've now tracked down the cause of the problem! Firstly, some background...
We wanted to "extend" (by Generalization, we now realise) BPMN2.0::Actvity to use our shapescript (and additional properties to drive it) (for this example, the metatype "ActvtyB"). We have a standardised way of setting up our profile metatypes so that they behave (i.e. their shapescripts behave) in a manner that is as consistent[1] as possible. We do this by taking advantage of the Generalization mechanism, which allows decorations to be inherited. Consequently, those metatypes of our own have the Extension to the appropriate metaclass and then a series of Generalizations to various intermediate metatypes that define decorations required to be surfaced by the metatype.
We have now found that this doesn't work out for our metatype ActvtyB.
If the emitted ActvtyB is defined as:
<Stereotype name="ActvtyB" metatype="ActivityB" notes="This is the definition of an activity (used for BPMN extension)" cx="0" cy="0" bgcolor="10092543"
fontcolor="8421376" bordercolor="9470064" borderwidth="1" hideicon="0" generalizes="BPMN2.0::Activity" baseStereotypes="BPMN2.0::Activity">
Then, "Alles ist in Ordnung" - It works (Well, NOT to the extent we need, but we get an element with BPMN2.0::Activity properties and working BPMN2.0::Activity QuickLinker - including to/from)
However, if we now try to add one of our decorator metatypes (in this case, "StndrdItm¯D" - for Standard Item Decorator) so that the emitted definition is:
<Stereotype name="ActvtyB" metatype="ActivityB" notes="This is the definition of an activity (used for BPMN extension)" cx="0" cy="0" bgcolor="10092543"
fontcolor="8421376" bordercolor="9470064" borderwidth="1" hideicon="0" generalizes="BPMN2.0::Activity" baseStereotypes="BPMN2.0::Activity StndrdItm¯D">
Everything "goes to Sh*T"! (Well, not completely, we still get the element, but the QuickLinker breaks and NO BPMN2.0 related menu items appear for BOTH metatypes BPMN2.0::Activity and <ourProfile>::ActvtyB! Remove the "StndrdItm¯D" Generalization and the QuickLinker returns.
This smells like a defect to us, but explaining why it SHOULD work this way would be enlightening and help drive our future planning.
Thoughts?
Paolo
[1] Concistency, konsistency, consistensy! TMUffe - after Paolo