61
Bugs and Issues / Connectors broken after Import as Model Branch
« on: July 30, 2009, 12:18:28 am »
We are working with very large scale models. The models will consist of hundreds of version controlled packages, some of which are used as framework components (read-only) in multiple models.
Suppose that a general component COMP_A is modeled as a package in model MOD_A and later exported as RELEASE 1.0 (using the XMI import/export). Subsequently, the XMI-file can be imported as a package COMP_A into another model MOD_B (or several other models that will make use of the general component). Later when COMP_A is updated in MOD_A and released as RELEASE 1.1 it is easy to replace the package in MOD_B with the new release by right-clicking on the package that is to be updated and importing the updated XMI file. Any connectors made to elements within COMP_A in MOD_B are preserved. (Obviously connectors from elements in COMP_A are not preserved, and general packages should therefore be made read-only using the Lock-feature, or by using mechanisms available in the used VCS.)
In an environment where 50 developers is contributing to the model and where components need to be configured into multiple platforms, for multiple customers, version control is required. The complex hierarchy of controlled packages is packaged and released using EA's model branch (EAB-file). Also version control branching will be required which is currently not very well supported in EA. We are well aware of the specific replacements that have to be made to the XMI files in order to support branching and handling of version controlled releases that are not residing in main trunk. These shortcomings could be accepted for now, if only the procedure outlined below would work.
Now, to the specific problem:
1. A model branch of package A is initially exported from model A. The model is version controlled and stored in Subversion under trunk.
2. A formal release of A is required and the files (EAB and XMI files) are therefore copied to the subversion release directory (using SVN, not EA).
3. The EAB file and all the XMI files are subsequently edited to reflect their new location within subversion.
4. A model B is subsequently created and a package A is created by importing the model branch. The model will then contain version controlled packages that are stored in the subversion release directory. People working in model B can now work with the initial release of A.
5. An updated release of package A (from model A) is subsequently made available by repeating steps 2 and 3.
6. People working with model B would now want to right-click on the package A and choose "Import as Model Branch..." again, but this is not possible. One way to overcome this problem is to temporarily turn off Version Control on every controlled package within the branch, and then do the "Import as Model Branch..." However, while doing this maneuver all connectors to the package A are removed. This is in contrast to XMI file import as described above, where connectors are preserved.
Questions
1. Why is it not possible to redo the "Import as Model Branch..." without turning off Version Control?
2. Why are all connectors broken when doing "Import as Model Branch..." after turning off Version Control?
3. When can we expect support for version control branching in EA?
/Hans
Suppose that a general component COMP_A is modeled as a package in model MOD_A and later exported as RELEASE 1.0 (using the XMI import/export). Subsequently, the XMI-file can be imported as a package COMP_A into another model MOD_B (or several other models that will make use of the general component). Later when COMP_A is updated in MOD_A and released as RELEASE 1.1 it is easy to replace the package in MOD_B with the new release by right-clicking on the package that is to be updated and importing the updated XMI file. Any connectors made to elements within COMP_A in MOD_B are preserved. (Obviously connectors from elements in COMP_A are not preserved, and general packages should therefore be made read-only using the Lock-feature, or by using mechanisms available in the used VCS.)
In an environment where 50 developers is contributing to the model and where components need to be configured into multiple platforms, for multiple customers, version control is required. The complex hierarchy of controlled packages is packaged and released using EA's model branch (EAB-file). Also version control branching will be required which is currently not very well supported in EA. We are well aware of the specific replacements that have to be made to the XMI files in order to support branching and handling of version controlled releases that are not residing in main trunk. These shortcomings could be accepted for now, if only the procedure outlined below would work.
Now, to the specific problem:
1. A model branch of package A is initially exported from model A. The model is version controlled and stored in Subversion under trunk.
2. A formal release of A is required and the files (EAB and XMI files) are therefore copied to the subversion release directory (using SVN, not EA).
3. The EAB file and all the XMI files are subsequently edited to reflect their new location within subversion.
4. A model B is subsequently created and a package A is created by importing the model branch. The model will then contain version controlled packages that are stored in the subversion release directory. People working in model B can now work with the initial release of A.
5. An updated release of package A (from model A) is subsequently made available by repeating steps 2 and 3.
6. People working with model B would now want to right-click on the package A and choose "Import as Model Branch..." again, but this is not possible. One way to overcome this problem is to temporarily turn off Version Control on every controlled package within the branch, and then do the "Import as Model Branch..." However, while doing this maneuver all connectors to the package A are removed. This is in contrast to XMI file import as described above, where connectors are preserved.
Questions
1. Why is it not possible to redo the "Import as Model Branch..." without turning off Version Control?
2. Why are all connectors broken when doing "Import as Model Branch..." after turning off Version Control?
3. When can we expect support for version control branching in EA?
/Hans