-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Declared Logical components not appearing as contained parts of the root logical system #231
Comments
fair point, @Ghipag - parts aren't instantiated on component creation. And as a side effect, you need to create Parts additionally and link those up with defining Components. The workaround is to either "declare" parts next to components (quite a duplication) or click them in the UI later. We didn't auto-create parts as Capella still has this "allow component reuse via parts" where parts are quite a thing - pretty much like class/block instances, one compoent may have many parts that may all have different names and be connected to different things but will have same definitions (ports and assigned functions). I guess it is safe to assume that this is a fairly unpopular option and the impact of not creating parts on Component creation on usability is pretty bad. Maybe we can add an option (default) for decl to understand that it is in a "single-part mode" or "part re-use enabled-model" and if it is in the default model type - create parts on component creation and rename/update parts on component rename/update (as in this mode they are 1 - 1). @Wuestengecko , in your opinion can we create 1 default part for every new component / would this create any trouble? I think this will make the decl thing a bit more user-friendly. |
Hi all,
I am using the decl.apply() method to update the logical architecture of a (currently empty) Capella model. I am successfully adding the logical components to the Capella model and these appear in the Capella model when I open the project. However these logical components (or coffee machine in my example below) do not have any entries in their "representing parts" or "Typed Elements" properties, nor do they appear in their parents "contained parts" or "sub logical components" properties.
As a result, the logical components I add to the model in this way can't be added to any Logical Architecture Diagrams [LAB]. Is there a workaround for this?
This is a stripped-down version of the code I am using that should recreate the issue:
Thanks for any help
The text was updated successfully, but these errors were encountered: