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:

  1. Right click on the package and select "Package control"; "Package Baseline" (STRG + ALT + B)
  2. Click on "Compare file to model"
  3. Choose an XML file
  4. To compare After ...
  5. 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

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -