Modeling Pattern

Hi,
I am using Capella 1.4.0 and the Pattern feature.
In the documentation I read “role can be ‘merged with’ or ‘added in’ elements of the target model”.
But in my current version of Capella I have not the feature “merge”!!
Can someone can help me on this point ?

Hello,
I suggest you to use the REC / RPL mechanisms instead, you can check out the Help section.
Hope it helps,

Thank,
but I want to use the pattern feature because :

  • we can reuse the layout and style.
  • the pattern has an icon to preview

Hi Jean-Pierre,
I have already used patterns and at first I faced the same problem with the terminologies of adding and merging. At the end, if I remember well, it is all about assigning the roles when applying the pattern.
Let me explain myself : when you apply a pattern, you need to assign roles. At this step, you have two possibilities : set a "
container" for the role (which is basically equivalent to
add your element into this container), or to set a "
target" for the role, which corresponds to the
merge feature (the tool will compare the target and the element that corresponds to the role and will merge them).
Hope this helps,
Pierre

For information, Patterns will be deprecated in the next version of Capella (
https://github.com/eclipse/capella/wiki/Roadmap).
So my suggestion is even more relevant :wink:

Navas Juan wrote on Wed, 05 August 2020 16:03
For information, Patterns will be deprecated in the next version of Capella (
https://github.com/eclipse/capella/wiki/Roadmap).
So my suggestion is even more relevant :wink:
Is it planned then to integrate to the REC/RPL mechanism the pattern’s merging feature as well as the capability to keep layout and style ? I am using mostly REC/RPL, but patterns can be useful in some cases because of those features.

For REC/RPL layouts, you can copy/paste layout and styles between elements belonging to REC towards elements to RPL.
https://github.com/eclipse/capella/blob/master/doc/plugins/org.polarsys.capella.re.doc/html/08.%20Replicable%20Element%20(REC-RPL)/8.2.%20Basic%20Use%20Case.mediawiki#copy-paste-layout
https://github.com/eclipse/capella/blob/master/doc/plugins/org.polarsys.capella.tipsandtricks.doc/html/Tips%20and%20tricks/5_Layout%20management/5_Layout%20management.mediawiki#layoutstyle-capella-copypaste
You can copy paste layout between :

  • REC -> RPL
  • RPL -> REC
  • Two RPL related to the same REC.
    Regards,
    Philippe

Hello,
Regarding the merge feature, this is already in the backlog, waiting for funding to be developed.
If you are interested on contributing to this evolution please feel free to contact us!
capella-contact@thalesgroup.com

Copyright © Eclipse Capella, the Eclipse Capella logo, Eclipse and the Eclipse logo are Trademarks of The Eclipse Foundation.