Class LoadMfgProcess

java.lang.Object
com.ptc.windchill.mpml.mfgprocess.LoadMfgProcess

public class LoadMfgProcess extends Object
Creates and persists Manufacturing Process objects based on input from a XML file. Method names and parameters are defined in csvmapfile.txt.

Supported API: true

Extendable: false
  • Method Details

    • createMfgProcess

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

      If a Manufacturing Process with this number already exists, the Manufacturing Process is looked up and a new iteration of the latest revision is created, unless the revision/iteration are specified using attributes in the the load file.

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

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

      XML Format (only Manufacturing Process specific ones are described, rest are same as for part)

      <csvMfgProcess handler="com.ptc.windchill.mpml.mfgprocess.LoadMfgProcess.createMfgProcess" >
       <csvuser> created by user </csvuser>
       <csvname> name of processplan </csvname>
       <csvnumber> unique number </csvnumber>
       <csvcategory> category </csvcategory>
       <csvdescription> description </csvdescription>
       <csvlongDescription> long description </csvlongDescription>
       <csvview> view </csvview>
       <csvfolder> folder </csvfolder>
       <csvlifecycle> lifecycle </csvlifecycle>
       <csvlifecyclestate> lifecycle state </csvlifecyclestate>
       <csvteamTemplate> team template </csvteamTemplate>
       <csvtypedef> typedef </csvtypedef>
       <csvparentContainerPath>parent container path </csvparentContainerPath>
       <csvversion> revision </csvversion>
       <csviteration> iteration </csviteration>
       <csvcreateTimestamp> creation time stamp </csvcreateTimestamp>
       <csvmodifyTimestamp> modification time stamp </csvmodifyTimestamp>
      </csvMfgProcess>

      Tag Definitions

      category The category value for the processplan. Valid values is one of the below 'production', 'quality', 'maintenance', 'repair'
      long description LongDescription can have Line Feed(&#10;) and Carriage Return(&#13;) in it

      Revisions and Iterations

      This method follows the standard used by LoadPart for the revisions and iterations

      Supported API: true

      Parameters:
      nv - Name/Value pairs of Manufacturing Process 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
    • beginMfgProcess

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

      XML Format

      <csvBeginMPMMfgProcess handler="com.ptc.windchill.mpml.mfgprocess.LoadMfgProcess.beginMfgProcess" >
      </csvBeginMPMMfgProcess >
       
      <csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
       ...
      </csvIBAValue >
      <csvEndMPMMfgProcess handler="com.ptc.windchill.mpml.mfgprocess.LoadMfgProcess.endMfgProcess" >
       ...
      </csvEndMPMMfgProcess >


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

      public static boolean endMfgProcess(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvEndMPMMfgProcess" directive in the xml load file. Causes the cached operation to be checked-out, associates soft attribues from preceding IBAValue load file lines with the Manufacturing Process, 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

      <csvEndMPMMfgProcess handler="com.ptc.windchill.mpml.mfgprocess.LoadMfgProcess.endMfgProcess" >
      </csvEndMPMMfgProcess >

      Tag Definitions



      Supported API: true

      Parameters:
      nv -
      cmd_line -
      return_objects -
      Returns:
      See Also: