This discussion is archived
3 Replies Latest reply: Nov 1, 2012 8:45 AM by Philip Stoyanov RSS

How to combine a number of domain files?

766286 Newbie
Currently Being Moderated
There is an SVN controlled model that has been going on for a couple of years now. To domains are stored in version control as well. Originally an attempt was made to group domains into a number of files but this practice has not been adhered to. Therefore, there are currently a number of files that should be combined into a single domain file for the design. What is the supported method of merging these files into a single domain file that is then the default file for the whole design? Currently, the files are named in a chaotic way such as domain_file.xml, domain_file.xml.xml, domain_file_group_n.xml and so forth. And yes, at some point due to a Data Modeler feature or a user error a couple of files appeared with up to three .xml suffixes in them.

Yours sincerely,

Miikka
  • 1. Re: How to combine a number of domain files?
    Philip Stoyanov Guru
    Currently Being Moderated
    Hi Miikka,
    What is the supported method of merging these files into a single domain file that is then the default file for the whole design?
    Open design, go to domain administration and change "Domains File" property to the name of that one single file.
    Or you can write transformation script to do it for you - don't forget to delete other files from domains directory.

    Philip
  • 2. Re: How to combine a number of domain files?
    766286 Newbie
    Currently Being Moderated
    Works like a charm! Thank you!

    I think I have also figured out how this particular model ended up with domain files that had multiple .xml suffixes. Steps to reproduce using Data Modeler version 3.1.3.709:
    1) Open Domain Administrator
    2) Select a domain file to administer such as foobar_domains.xml.
    3) Click on Add to add a new domain to that file.
    4) Give the new domain a name. Note that the Domains file property now contains the complete file name: foobar_domains.xml.
    5) Click on Apply and then on Save.
    6) Close the Domain Administrator.
    7) Save the model.

    => The newly added domain has been saved to foobar_domains.xml.xml and not to foobar_domains.xml as expected. However, as long as one does not save the whole model the new domain appears to stay in foobar_domains.xml.

    Best regards,

    Miikka
  • 3. Re: How to combine a number of domain files?
    Philip Stoyanov Guru
    Currently Being Moderated
    Hi Miikka,
    2) Select a domain file to administer such as foobar_domains.xml.
    You can do it in this way but then you should not open the design itself.
    Using "Domains File" property is much easier way to create design level domains - the design should be opened.

    Philip

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points