4 Replies Latest reply on Jun 8, 2018 9:14 AM by Brice-Emmanuel Loiseaux

    ADDM Product EOL Sync pattern

    Mathew Gannon

      Hi All,


      I'm on a bit of a TPL learning exercise (complete  TPL Noob here) and I'm trying to get the Support Detail from ADDM into the CMDB for our Products.


      The below is loading ok into ADDM, but i'm getting Sync errors, and therefore no data. Essentially I'm trying to populate the Product CI based off the SI EOL data - anyone got any pointers at please?



      from CMDB.SoftwareInstance_SoftwareServer import SoftwareInstance_SoftwareServer 4.0;

      syncmapping SIprodDates_Extension 1.0

            tags CMDB, ProductDates, Extension;
         end overview;

         mapping from SoftwareInstance_SoftwareServer.softwareinstance as si
          traverse ElementWithDetail:SupportDetail:SoftwareDetail:SupportDetail as supdet
          end traverse;
         end mapping;
              product := SoftwareInstance_Product.product;
        for each supdet do
              product.EOS_EndofSupportDate   := supdet.end_support_date;
              product.EOL_RetirementDate   := supdet.end_support_date;
              product.EOES_EndofExtendedSupportDate := supdet.end_ext_support_date;
        end for;
          end body;
          end syncmapping;