Class LoadCommonMPMLinks

java.lang.Object
com.ptc.windchill.mpml.LoadCommonMPMLinks

public class LoadCommonMPMLinks extends Object
Creates and persists Common MPMLink Links based on input from a XML file. Method names and parameters are defined in csvmapfile.txt.

Supported API: true

Extendable: false
  • Method Details

    • createCompatibilityLink

      public static boolean createCompatibilityLink(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvCreateCompatibilityLink" directive in the xml load file. Creates a CompatibilityLink between an MPMCompatibility object (MPMMfgProcess and MPMResource) and MPMCompatibleMaster(MPMMfgProcessMaster and MPMResourceMaster).

      XML Format

      <csvCreateCompatibilityLink handler="com.ptc.windchill.mpml.LoadCommonMPMLinks.createCompatibilityLink" >
       <csvparentType> parent type </csvparentType>
       <csvparentNumber> parent number </csvparentNumber>
       <csvparentVersion> parent version </csvparentVersion>
       <csvparentIteration> parent iteration </csvparentIteration>
       <csvparentView> parent view </csvparentView>
       <csvchildType> child type </csvchildType>
       <csvchildNumber> child number </csvchildNumber>
       <csvcompatibilityType> compatibility type </csvcompatibilityType>
       <csvstepUsageRate1> stepUsageRate1 </csvstepUsageRate1>
       <csvstepUsageRate2> stepUsageRate2 </csvstepUsageRate2>
       <csvstepUsageRate3> stepUsageRate3 </csvstepUsageRate3>
       <csvstepUsageRate4> stepUsageRate4 </csvstepUsageRate4>
       <csvstepUsageRate5> stepUsageRate5 </csvstepUsageRate5>
       <csvstepUsageRate6> stepUsageRate6 </csvstepUsageRate6>
       <csvstepUsageRate7> stepUsageRate7 </csvstepUsageRate7>
       <csvstepUsageRate8> stepUsageRate8 </csvstepUsageRate8>
       <csvtypedef> typedef </csvtypedef>
      </csvCreateCompatibilityLink>

      Tag Definitions

      parent type This tag specifies the type of MPMCompatibility object. This values that can be provided are "resource" and "mfgprocess"
        
      parent number This tag specifies the Number of MPMCompatibility object. This is a required field.
        
      parent version This tag specifies the Version of MPMCompatibility object. If left blank, it is defaulted to the latest version/iteration.
        
      parent iteration This tag specifies the Iteration of MPMCompatibility object. If left blank, it is defaulted to the latest version/iteration.
        
      parent view This tag specifies the View of MPMCompatibility object. This is not a required field.
        
      child type This tag specifies the type of MPMCompatibleMaster object. The values that can be provided are "resource" and "mfgprocess"
        
      child number This tag specifies the Number of MPMCompatibleMaster object. This is a required field.
        
      compatibility type This tag specifies the type of compatibility between the 2 objects. This is a required field and the values that can be provided are "mandatory", "acceptable", "forbidden", "not recommended" and "preferred"
        
      stepUsageRate1 This tag specifies the value for Setup Usage Rate. If left blank, it is defaulted to -1.0.
        
      stepUsageRate2 This tag specifies the value for Processing Usage Rate. If left blank, it is defaulted to -1.0.
        
      stepUsageRate3 This tag specifies the value for Teardown Usage Rate. If left blank, it is defaulted to -1.0.
        
      stepUsageRate4 This tag specifies the value for Queue Usage Rate. If left blank, it is defaulted to -1.0.
        
      stepUsageRate5 This tag specifies the value for Move Usage Rate. If left blank, it is defaulted to -1.0.
        
      stepUsageRate6 This tag specifies the value for Waiting Usage Rate. If left blank, it is defaulted to -1.0.
        
      stepUsageRate7 This tag specifies the value for Other Usage Rate. If left blank, it is defaulted to -1.0.
        
      stepUsageRate8 If left blank, it is defaulted to -1.0.
        
      typedef This contains the identifier string of a com.ptc.core.meta.common.TypeIdentifier.

      i.e. com.ptc.windchill.mpml.MPMCompatibilityLink|com.mycompany.SoftLink2

      This would create a soft typed part. This currently supports the following modeled types:

      This currently does not handle custom modeled types. If there is a need for one of these, then a custom loader needs to be created.

      This value is optional and defaults to com.ptc.windchill.mpml.MPMCompatibilityLink.



      Supported API: true
      Parameters:
      nv - Name/Value pairs of part attributes.
      cmd_line - command line argument that can contain supplemental load data
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Returns:
    • beginMPMCompatibilityLink

      public static boolean beginMPMCompatibilityLink(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvBeginMPMCompatibilityLink" directive in the XML load file. Creates a MPMCompatibilityLink object, persists it in the database, checks it out, applies the default attribute values associated with the specified type definition, persists the compatibility link, checks it back in, and caches it in the loader's memory.

      XML Format

      <csvBeginCreateCompatibilityLink handler="com.ptc.windchill.mpml.LoadCommonMPMLinks.beginMPMCompatibilityLink" >
      Same as createCompatibilityLink

      Supported API: true
      Parameters:
      nv - Name/Value pairs of part attributes.
      cmd_line - command line argument that can contain supplemental load data
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Returns:
      See Also:
    • endMPMCompatibilityLink

      public static boolean endMPMCompatibilityLink(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvEndMPMCompatibilityLink" directive in the xml load file. Associates soft attribues from preceding IBAValue load file lines with the cached CompatibilityLink, applies the default attribute values associated with the specified type definition, persists the links, and caches it in the loader's memory.

      XML Format

      <csvEndCompatibilityLink handler="com.ptc.windchill.mpml.LoadCommonMPMLinks.endMPMCompatibilityLink" />


      Supported API: true
      Parameters:
      nv -
      cmd_line -
      return_objects -
      Returns:
    • createMPMDocumentDescribeLink

      public static boolean createMPMDocumentDescribeLink(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvCreateMPMDocumentDescribeLink" directive in the xml load file. Creates a MPMDocumentDescribeLink between an MPMDocumentManageable object (MPMProcessPlan, MPMOperation, MPMSequence, MPMMfgProcess and MPMMfgStandardGroup) and WTDocument.

      XML Format

      <csvCreateMPMDocumentDescribeLink handler="com.ptc.windchill.mpml.LoadCommonMPMLinks.createMPMDocumentDescribeLink" >
       <csvparentType> parent type </csvparentType>
       <csvparentNumber> parent number </csvparentNumber>
       <csvparentVersion> parent version </csvparentVersion>
       <csvparentIteration> parent iteration </csvparentIteration>
       <csvparentView> parent view </csvparentView>
       <csvchildNumber> child number </csvchildNumber>
       <csvchildVersion> child version </csvchildVErsion>
       <csvchildIteration> child iteration </csvchildIteration>
      </csvCreateMPMDocumentDescribeLink>

      Tag Definitions

      parent type This tag specifies the type of MPMDocumentManageable object. This values that can be provided are "processplan", "operation", "sequence", "mfgstandardgroup" and "mfgprocess"
        
      parent number This tag specifies the Number of MPMDocumentManageable object. This is a required field.
        
      parent version This tag specifies the Version of MPMDocumentManageable object. If left blank, it is defaulted to the latest version/iteration.
        
      parent iteration This tag specifies the Iteration of MPMDocumentManageable object. If left blank, it is defaulted to the latest version/iteration.
        
      parent view This tag specifies the View of MPMDocumentManageable object. This is not a required field.
        
      child number This tag specifies the Number of WTDocument. This is a required field.
        
      child version This tag specifies the version of WTDocument. This is not a required field.
        
      child iteration This tag specifies the iteration of WTDocument. This is not a required field.
        


      Supported API: true
      Parameters:
      nv -
      cmd_line -
      return_objects -
      Returns:
    • createMPMDocumentReferenceLink

      public static boolean createMPMDocumentReferenceLink(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvCreateMPMDocumentReferenceLink" directive in the xml load file. Creates a MPMDocumentReferenceLink between an MPMDocumentManageable object (MPMProcessPlan, MPMOperation, MPMSequence, MPMMfgProcess and MPMMfgStandardGroup) and WTDocumentMaster.

      XML Format

      <csvCreateMPMDocumentReferenceLink handler="com.ptc.windchill.mpml.LoadCommonMPMLinks.createMPMDocumentReferenceLink" >
       <csvparentType> parent type </csvparentType>
       <csvparentNumber> parent number </csvparentNumber>
       <csvparentVersion> parent version </csvparentVersion>
       <csvparentIteration> parent iteration </csvparentIteration>
       <csvparentView> parent view </csvparentView>
       <csvchildNumber> child number </csvchildNumber>
      </csvCreateMPMDocumentReferenceLink>

      Tag Definitions

      parent type This tag specifies the type of MPMDocumentManageable object. This values that can be provided are "processplan", "operation", "sequence", "mfgstandardgroup" and "mfgprocess"
        
      parent number This tag specifies the Number of MPMDocumentManageable object. This is a required field.
        
      parent version This tag specifies the Version of MPMDocumentManageable object. If left blank, it is defaulted to the latest version/iteration.
        
      parent iteration This tag specifies the Iteration of MPMDocumentManageable object. If left blank, it is defaulted to the latest version/iteration.
        
      parent view This tag specifies the View of MPMDocumentManageable object. This is not a required field.
        
      child number This tag specifies the Number of WTDocument. This is a required field.
        


      Supported API: true
      Parameters:
      nv -
      cmd_line -
      return_objects -
      Returns:
    • createAlternateUnitLink

      public static boolean createAlternateUnitLink(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvCreateAlternateUnitLink" directive in the xml load file. Creates a AlternateUnitLink between an AlternateUnitAssignable object (MPMProcessPlanMaster, MPMOperationMaster, MPMSequenceMaster and WTPartMaster) and AlternateUnitofMeasure.

      XML Format

      <csvCreateAlternateUnitLink handler="com.ptc.windchill.mpml.LoadCommonMPMLinks.createAlternateUnitLink" >
       <csvtypedef> typedef </csvtypedef>
       <csvparentType> parent type </csvparentType>
       <csvparentNumber> parent number </csvparentNumber>
       <csvalternateUnit6> alternateUnit </csvstepUsageRate6>
       <csvnumerator> numerator </csvstepUsageRate7>
       <csvdenominator> denominator </csvstepUsageRate8>
      </csvCreateAlternateUnitLink>

      Tag Definitions

      parent type This tag specifies the type of AlternateUnitAssignable object. This values that can be provided are "processplan", "operation", "sequence" and "part"(for WTParts and MPMResources)
        
      parent number This tag specifies the Number of AlternateUnitAssignable object. This is a required field.
        
      alternateUnit This tag specifies the value for the Alternate Unit. This is a required field.
        
      numerator This tag specifies the value for the Numerator. This is a required field.
        
      denominator This tag specifies the value for the Denominator. This is a required field.
        
      typedef This contains the identifier string of a com.ptc.core.meta.common.TypeIdentifier.

      i.e. wt.aum.AlternateUnitLink|com.mycompany.SoftLink2

      This would create a soft typed part. This currently supports the following modeled types:

      This currently does not handle custom modeled types. If there is a need for one of these, then a custom loader needs to be created.

      This value is optional and defaults to wt.aum.AlternateUnitLink.



      Supported API: true
      Parameters:
      nv - Name/Value pairs of part attributes.
      cmd_line - command line argument that can contain supplemental load data
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Returns:
    • beginAlternateUnitLink

      public static boolean beginAlternateUnitLink(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvBeginAlternateUnitLink" directive in the XML load file. Creates an AlternateUnitLink object, persists it in the database, checks it out, applies the default attribute values associated with the specified type definition, persists the link, checks it back in, and caches it in the loader's memory.

      XML Format

      <csvBeginAlternateUnitLink handler="com.ptc.windchill.mpml.LoadCommonMPMLinks.beginAlternateUnitLink" >
      Same as createAlternateUnitLink

      Supported API: true
      Parameters:
      nv -
      cmd_line -
      return_objects -
      Returns:
      See Also:
    • endAlternateUnitLink

      public static boolean endAlternateUnitLink(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvEndAlternateUnitLink" directive in the xml load file. Associates soft attribues from preceding IBAValue load file lines with the cached AlternateUnitLink, applies the default attribute values associated with the specified type definition, persists the links, and caches it in the loader's memory.

      XML Format

      <csvEndAlternateUnitLink handler="com.ptc.windchill.mpml.LoadCommonMPMLinks.endAlternateUnitLink" />


      Supported API: true
      Parameters:
      nv -
      cmd_line -
      return_objects -
      Returns:
    • createPartToPlantAsignmentLink

      public static boolean createPartToPlantAsignmentLink(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvCreatePartToPlantAsignmentLink" directive in the xml load file. Creates a MPMPartToPlantAsignmentLink between an WTPart and MPMPlantMaster.

      XML Format

      <csvCreatePartToPlantAsignmentLink handler="com.ptc.windchill.mpml.LoadCommonMPMLinks.createPartToPlantAsignmentLink" >
       <csvparentNumber> parent number </csvparentNumber>
       <csvparentVersion> parent version </csvparentVersion>
       <csvparentIteration> parent iteration </csvparentIteration>
       <csvparentView> parent view </csvparentView>
       <csvchildNumber> child number </csvchildNumber>
       <csvtypedef> typedef </csvtypedef>
      </csvCreatePartToPlantAsignmentLink>

      Tag Definitions

      parent number This tag specifies the Number of WTPart. This is a required field.
        
      parent version This tag specifies the Version of WTPart. If left blank, it is defaulted to the latest version/iteration.
        
      parent iteration This tag specifies the Iteration of WTPart. If left blank, it is defaulted to the latest version/iteration.
        
      parent view This tag specifies the View of WTPart. This is not a required field.
        
      child number This tag specifies the Number of MPMPlant. This is a required field.
        
      typedef This contains the identifier string of a com.ptc.core.meta.common.TypeIdentifier.

      i.e. com.ptc.windchill.mpml.MPMPartToPlantAssignmentLink|com.mycompany.SoftLink2

      This would create a soft typed part. This currently supports the following modeled types:

      This currently does not handle custom modeled types. If there is a need for one of these, then a custom loader needs to be created.

      This value is optional and defaults to com.ptc.windchill.mpml.MPMPartToPlantAssignmentLink.



      Supported API: true
      Parameters:
      nv -
      cmd_line -
      return_objects -
      Returns:
    • beginMPMPartToPlantAssignmentLink

      public static boolean beginMPMPartToPlantAssignmentLink(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvBeginMPMPartToPlantAssignmentLink" directive in the XML load file. Creates an MPMPartToPlantAssignmentLink object, persists it in the database, checks it out, applies the default attribute values associated with the specified type definition, persists the link, checks it back in, and caches it in the loader's memory.

      XML Format

      <csvBeginMPMPartToPlantAssignmentLink handler="com.ptc.windchill.mpml.LoadCommonMPMLinks.beginMPMPartToPlantAssignmentLink" >
      Same as createPartToPlantAsignmentLink

      Supported API: true
      Parameters:
      nv -
      cmd_line -
      return_objects -
      Returns:
      See Also:
    • endMPMPartToPlantAssignmentLink

      public static boolean endMPMPartToPlantAssignmentLink(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvEndMPMPartToPlantAssignmentLink" directive in the xml load file. Associates soft attribues from preceding IBAValue load file lines with the cached MPMPartToPlantAssignmentLink, applies the default attribute values associated with the specified type definition, persists the links, and caches it in the loader's memory.

      XML Format

      <csvEndMPMPartToPlantAssignmentLink handler="com.ptc.windchill.mpml.LoadCommonMPMLinks.endMPMPartToPlantAssignmentLink" />


      Supported API: true
      Parameters:
      nv -
      cmd_line -
      return_objects -
      Returns:
    • beginPlantAssignmentLink

      public static boolean beginPlantAssignmentLink(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvBeginPlantAssignmentLink" directive in the XML load file. This format CAN add Soft Attributes(IBA). For more info on the csvformat and other information see createPlantAssignmentLink.

      XML Format

      <csvBeginPlantAssignmentLink handler="com.ptc.windchill.mpml.LoadCommonMPMLinks.beginPlantAssignmentLink" >
      </csvBeginPlantAssignmentLink >
       
      <csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
       ...
      </csvIBAValue >
      <csvEndPlantAssignmentLink handler="com.ptc.windchill.mpml.LoadCommonMPMLinks.endPlantAssignmentLink" >
       ...
      </csvEndPlantAssignmentLink >


      Supported API: true
    • endPlantAssignmentLink

      public static boolean endPlantAssignmentLink(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvEndPlantAssignmentLink" directive in the csv load file. Causes the cached PlantAssignmentLink to be checked-out, associates soft attribues from preceding IBAValue load file lines with the PlantAssignmentLink, applies the default attribute values associated with the specified type definition, persists the object, checks it back in, and caches it in the loader's memory.

      XML Format

      <csvEndPlantAssignmentLink handler="com.ptc.windchill.mpml.LoadCommonMPMLinks.endPlantAssignmentLink" >
      </csvEndPlantAssignmentLink >

      Tag Definitions

      Supported API: true

      See Also:
    • createPlantAssignmentLink

      public static boolean createPlantAssignmentLink(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvCreatePlantAssignmentLink" directive in the XML load file. Creates a PlantAssignmentLink object, persists it in the database, checks it out, applies the default attribute values associated with the specified type definition, persists the PlantAssignmentLink, checks it back in, and caches it in the loader's memory.

      This format cannot add Soft Attributes(IBA). For that see beginPlantAssignmentLink.

      When using wt.load.LoadFromFile to load PlantAssignmentLink, use the following XML format:

      <csvCreatePlantAssignmentLink handler="com.ptc.windchill.mpml.LoadCommonMPMLinks.createPlantAssignmentLink" >
       <csvtypedef> typedef </csvtypedef>
       <csvparentNumber> PlantOwned Number </csvparentNumber>
       <csvparentVersion> PlantOwned Version </csvparentVersion>
       <csvparentIteration> PlantOwned Iteration </csvparentIteration>
       <csvparentView> PlantOwned View </csvparentView>
       <csvparentType> PlantOwned Type </csvparentType>
       <csvchildNumber> Plant Number </csvchildNumber>
      </csvCreatePlantAssignmentLink>

      Tag Definitions

      PlantOwned Number(Mandatory) Number of the object to be assoicated to the plant via plantassignmentlink
      PlantOwned Type (Mandatory) Type of the object to be assoicated to the plant via plantassignmentlink Valid values are 'processplan', 'operation', 'sequence', 'mfgprocess', 'mfgstandardgroup', 'resource'
      Plant Number (Mandatory) Number of the plant to be associated via plantassignmentLink


      Supported API: true
      Parameters:
      nv - Name/Value pairs of PlantAssignmentLink attributes.
      cmd_line - command line argument that can contain supplemental load data
      return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.
      Returns:
      truesuccess
      falsefailure