enterprise architect - Develop a EA-BaseliningMerge workflow in C# -
I want to develop a workflow to merge the base line in EA as described by the GUI:
- Right click on the package and select "Package control"; "Package Baseline" (STRG + ALT + B)
- Click on "Compare file to model"
- Choose an XML file
- To compare After ...
- Choose package (in "Model Elements" and not in "Project Browser") & gt; Right-click - & gt; "Merge with the baseline (with option)"
I think I have to use the following methods (as mentioned) but I do not know how to use them How to do:
EA.App eaApp = new EA.App (); EA Repository stores = zero; If (eaApp.Repository.OpenFile2 (/ * FileOrDB * / "...", / * User * / "...", / * PWD * / "...")) {repository = eaApp.Repository; . Repository.GetProjectInterface () DoBaselineCompare (...); . Repository.GetProjectInterface () DoBaselineMerge (...); }
Can someone post an example to execute these steps in C #?
Looking at the documents of both DoBaseLine ... It seems that with these basic grounds Only you can use it which is actually stored in the (or other) model, there is nothing in the API that allows you to compare it to an xmi file.
But there is an alternative solution. You can import the XMI file in another model, for this, you can create a baseline for this by using
ProjectInterface.CreateBaseline or
ProjectInterface.CreateBaselineEx .
Once you have this baseline, you can compare it with the package in your model and merge it.
Comments
Post a Comment