eclipse-capella / capella

Open Source Solution for Model-Based Systems Engineering
https://mbse-capella.org
Eclipse Public License 2.0
236 stars 96 forks source link

org.polarsys.capella.core.re.project.ReProjectScope ignores elements with a set ProgressStatus #2882

Open flatombe opened 3 months ago

flatombe commented 3 months ago

org.polarsys.capella.core.re.project.ReProjectScope is invoked when we have a Capella Library and we use the contextual menu action "REC / RPL > Create REC > With whole library content..." When a library element has a Progress Status that is set, then this element (and its heirs) gets pruned from the scope. This can result in either an incomplete REC (that can cause issues later when trying to instantiate a corresponding RPL, see issue #2883), or with the dialog telling us the library is empty (when it is not).

Reproduction:

Suggested fix: When creating the REC from selecting the Logical Function, upon creation of the corresponding RPL, the Progress Status from the library is referenced by the RPL element. This sounds OK to me. I think RECs from whole libraries should behave similarly. org.polarsys.capella.core.re.project.ReProjectScope should not consider an EReference to a Progress Status contained by the library to be an "external reference".

(Capella 6.1.0 / Windows 11)