Uploading multiple document revisions with the batchloader

Hi,

I have the following (legacy) structure of documents and files:

  • DOC-0001 Rev 12 State: Superseded
    • File abc_12.dwg
    • File abc_12.pdf
  • DOC-0001 Rev 13 State: Superseded
    • File abc_13.dwg
    • File abc_13.pdf
  • DOC-0001 Rev 14 State: Released
    • File abc_14.dwg
    • File abc_14.pdf

I would like to upload these to ARAS using the batch-loader utility.

Is this possible with AML keeping the revisions and states correct? and how should the AML code look?

Regards,

Frank

Parents
  • Hi Frank,

    I haven´t done this yet, but once had to spend some time for this use case. Do you use automatic versioning for documents? Than Innovator might create the new revisions for you. It´s maybe possible to import all items at one. Your import file just should have the correct order of the items, so your documents don´t get mixed up. You can later overwrite the used major_rev with the different start number and promote the affected Items to the state you need with a seconds batch call (just manipulate the Lifecycle temporary for this task). 

  • Your import file just should have the correct order of the items, so your documents don´t get mixed up.

    Hi,

    Thanks for the answer. I don't know if I fully understand your proposal fully.

    For the documents, we indeed use the ootb automatic versioning.
    For the first fileload, I have some AML code, see below:

    <Item type="Document" action="add">
      <name>@1</name>
      <description>@2</description>
      <classification>@3</classification>
      <amp_subclass>@4</amp_subclass>
      <owned_by_id>
          <Item type="Identity" action="get" select="id">
          <keyed_name>@9</keyed_name>
       </Item>
    </owned_by_id>

    <Relationships>
       <Item type="Document File" action="add">
         <related_id>
             <Item type="File" action="add">
             <actual_filename>@8</actual_filename>
             <filename>@7</filename>
             <Relationships>
                <Item type="Located" action="add">
                   <related_id>67BBB9204FE84A8981ED8313049BA06C</related_id>
                </Item>
              </Relationships>
           </Item>
         </related_id>
       </Item>
     </Relationships>
    </Item>

    How should I add the other files to the newer revision of the document? So, How do I refer back to the newly created Document, create a new revision and add the files?

    And how do I manipulate the Lifecycle temporary with AML?

    Could you hint to some AML code I need for this?

    Regards,

    Frank

Reply
  • Your import file just should have the correct order of the items, so your documents don´t get mixed up.

    Hi,

    Thanks for the answer. I don't know if I fully understand your proposal fully.

    For the documents, we indeed use the ootb automatic versioning.
    For the first fileload, I have some AML code, see below:

    <Item type="Document" action="add">
      <name>@1</name>
      <description>@2</description>
      <classification>@3</classification>
      <amp_subclass>@4</amp_subclass>
      <owned_by_id>
          <Item type="Identity" action="get" select="id">
          <keyed_name>@9</keyed_name>
       </Item>
    </owned_by_id>

    <Relationships>
       <Item type="Document File" action="add">
         <related_id>
             <Item type="File" action="add">
             <actual_filename>@8</actual_filename>
             <filename>@7</filename>
             <Relationships>
                <Item type="Located" action="add">
                   <related_id>67BBB9204FE84A8981ED8313049BA06C</related_id>
                </Item>
              </Relationships>
           </Item>
         </related_id>
       </Item>
     </Relationships>
    </Item>

    How should I add the other files to the newer revision of the document? So, How do I refer back to the newly created Document, create a new revision and add the files?

    And how do I manipulate the Lifecycle temporary with AML?

    Could you hint to some AML code I need for this?

    Regards,

    Frank

Children
No Data