cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Metapicture and test for automatic insertion

Solved
Highlighted
Occasional Contributor

Metapicture and test for automatic insertion

Good Morning,

 

I ‘m looking for information about Metapicture.

We are working on the metapicture for the message, we have some metapicture for automatic insertion depending on a metaattribulevalue of the message.

But we went to add some condition basing on the diagram nature.

For example : create a new metapicture that only work if the diagram it’s an Application Internal Archtecture Diagram.

We try with a query but it’s not working.

It’s possible to add a test in a metapicture but using a metattribute not connected to the metaclass concerned by this metapicture?

 

Thanks

4 Replies
MEGA

Re: Metapicture and test for automatic insertion

Hello EColomb

 

In most cases, MetaPicture conditions test a MetaAttribut or a MetaAssociationEnd

 

Here the functional need is to test the property 'Nature' of an object (of type 'Diagram) connected to the initial message.

 

You can use a MetaPicture condition implemented by a query. With a query, you can test that the message is connected to a diagram with a given nature. Note that the test will not be contextual to the current diagram: the query can test if the message is connected to none/one/any diagram with this nature in the repository.

Jerome
Occasional Contributor

Re: Metapicture and test for automatic insertion

Thxs for the information Smiley Happy

Contributor

Re: Metapicture and test for automatic insertion

Hello EColomb,

 

In the context of the "Application Internal Architecture Diagram" DiagramType, it is possible to create a new DiagramTypeObject with a specific set of MetaPictures.

 

Therefore, you can add a MetaPicture which will be available only in that type of diagram.

 

Such customizations should be processed carefully, because DiagramTypeViews and DiagramTypeObjects may be reused in several DiagramTypes.

 

Regards,

Sergueï

Occasional Contributor

Re: Metapicture and test for automatic insertion

Thx for this solution.

We will see if we try this solution.