Book a Demo

Author Topic: Provide an API method to generate of profile file for a uml profile package  (Read 5167 times)

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
When you have several profile packages you want e.g. to distribute in a MDG, you have to handle each package with the GUI manually.
However to be reproducible, specially for more complex profiles, it would help very much if the whole MDG could be generated by a script. A first step to allow this reproducibility is to have a method allowing creating an uml profile xml file from a package by a script.
Best regards,

Peter Heintz

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
Best regards,

Peter Heintz

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
+1

In the longer term, it would also be useful to be able to create an MDG Technology through the API.
Something like
Code: (pseudo) [Select]
class MdgTechnologyBuilder {
    SavePackageAsProfile(package, filename);
    SavePackageAsPattern(package, filename);

    string name;
    string id;
    string version;
    string url;
    string supportLink;
    string notes;

    ReadMtsFile(filename);
    SetIcon(filename);
    SetLogo(filename);

    AddProfile(filename);
    AddTaggedValueType(tag);
    AddDiagramTypes(filename);
    AddToolbox(filename);
    AddPattern(filename);
    AddLearningCenterPage(filename);
    AddImage(image);
    AddScript(script);
    AddWorkspaceLayout(layout);
    AddCodeModule(module);
    AddMdaTransform(transform);
    AddRtfTemplate(template);
    AddLinkedDocumentTemplate(template);
    AddModelView(view);
    AddSearch(search);

    GenerateMdgTechnology(technologyFileName, mtsFileName);
}

There must be something like this under the hood already, it should just be a matter of exposing it.

/Uffe
My theories are always correct, just apply them to the right reality.