Class LoadOperation

java.lang.Object
com.ptc.windchill.mpml.processplan.operation.LoadOperation

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

Supported API: true

Extendable: false
  • Method Details

    • beginOperation

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

      XML Format

      The operation attributes here...
      <csvBeginOperation handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.beginOperation" >
      </csvBeginOperation >
       
      <csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
       ...
      </csvIBAValue >
      <csvEndOperation handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.endOperation" >
       ...
      </csvEndOperation >


      Supported API: true
    • endOperation

      public static boolean endOperation(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvEndOperation" 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 operation, 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

      <csvEndOperation handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.endOperation" >
      </csvEndOperation >

      Tag Definitions



      Supported API: true

      See Also:
    • createOperation

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

      If a Operation with this number already exists, the Operation 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 beginOperation.

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

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

      <csvCreateOperation handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.createOperation" >
       <csvuser> created by user </csvuser>
       <csvname> name of processplan </csvname>
       <csvnumber> unique number </csvnumber>
       <csvdefaultUnit> default Unit </csvdefaultUnit>
       <csvcategory> category </csvcategory>
       <csvfolder> folder </csvfolder>
       <csvlifecycle> lifecycle </csvlifecycle>
       <csvview> view </csvview>
       <csvteamTemplate> team template </csvteamTemplate>
       <csvlifecyclestate> lifecycle state </csvlifecyclestate>
       <csvtypedef> typedef </csvtypedef>
       <csvversion> revision </csvversion>
       <csviteration> iteration </csviteration>
       <csvorganizationName> organization name </csvorganizationName>
       <csvorganizationID> organization id </csvorganizationID>
       <csvcreateTimestamp> creation time stamp </csvcreateTimestamp>
       <csvmodifyTimestamp> modification time stamp </csvmodifyTimestamp>
      </csvCreateOperation>

      Tag Definitions

      category The category value for the operation. Valid values are 'production', 'quality', 'maintenance', 'repair'

      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 operation 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
    • beginOperationUsageLink

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

      XML Format

      The attributes here...
      <csvBeginOperationUsageLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.beginOperationUsageLink" >
      </csvBeginOperationUsageLink >
       
      <csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
       ...
      </csvIBAValue >
      <csvEndOperationUsageLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.endOperationUsageLink" >
       ...
      </csvEndOperationUsageLink >


      Supported API: true
    • endOperationUsageLink

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

      <csvEndOperationUsageLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.endOperationUsageLink" >
      </csvEndOperationUsageLink >

      Tag Definitions



      Supported API: true

      See Also:
    • createOperationUsageLink

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

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

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

      <csvCreateOperationUsageLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.createOperationUsageLink" >
       <csvtypedef> typedef </csvtypedef>
       <csvparentNumber> OperationHolder Number </csvparentNumber>
       <csvparentType> OperationHolder Type </csvparentType>
       <csvparentVersion> OperationHolder Version </csvparentVersion>
       <csvparentIteration> OperationHolder Iteration </csvparentIteration>
       <csvparentView> OperationHolder View </csvparentView>
       <csvchildNumber> Operation Number </csvchildNumber>
       <csvopLabel> Operation Label </csvopLabel>
      </csvCreateOperationUsageLink>

      Tag Definitions

      Operation Label Label for the operation. This is optional attribute, if not specified its calculated internally
      Operation Number The number of the operation object
      OperationHolder Number (Mandatory) The number of the parent to which the operation will be associated. This is mandatory attribute, and must have a valid number of an existing parent
      OperationHolder Type (Mandatory) Tells the type of parent to which operation should be associated. This is mandatory attribute Valid values are 'processplan', 'sequence', 'operation'


      Supported API: true
      Parameters:
      nv - Name/Value pairs of OperationUsageLink 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
    • beginOperationToWorkCenterLink

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

      XML Format

      The attributes here...
      <csvBeginOperationToWorkCenterLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.beginOperationToWorkCenterLink" >
      </csvBeginOperationToWorkCenterLink >
       
      <csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
       ...
      </csvIBAValue >
      <csvEndOperationToWorkCenterLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.endOperationToWorkCenterLink" >
       ...
      </csvEndOperationToWorkCenterLink >


      Supported API: true
    • endOperationToWorkCenterLink

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

      <csvEndOperationToWorkCenterLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.endOperationToWorkCenterLink" >
      </csvEndOperationToWorkCenterLink >

      Tag Definitions



      Supported API: true

      See Also:
    • createOperationToWorkCenterLink

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

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

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

      <csvCreateOperationToWorkCenterLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.createOperationToWorkCenterLink" >
       <csvtypedef> typedef </csvtypedef>
       <csvparentNumber> Operation Number </csvparentNumber>
       <csvparentVersion> Operation Version </csvparentVersion>
       <csvparentIteration> Operation Iteration </csvparentIteration>
       <csvparentView> Operation View </csvparentView>
       <csvchildNumber> WorkCenter Number </csvchildNumber>
       <csvplantNumber> Plant Number </csvplantNumber>
       <csvplantVersion> Plant Version </csvplantVersion>
       <csvplantIteration> Plant Iteration </csvplantIteration>
       <csvplantView> Plant View </csvplantView>
       <csvdepartment> Department </csvdepartment>
       <csvdescription> Description </csvdescription>
      </csvCreateOperationToWorkCenterLink>

      Tag Definitions

      Operation Number(Mandatory) Number of the operation to which workcenter has to be assoicated via operation to workcenter link
      WorkCenter Number (Mandatory) Number of the workcenter
      Plant Number Number of the plant to which the workcenter belongs. Its an attribute on the link and is optional.
      Department Department of the workcenter. Its an attribute on the link and is optional.
      Description Description of the association of workcenter to the operation. Its an attribute on the link and is optional.


      Supported API: true
      Parameters:
      nv - Name/Value pairs of OperationToWorkCenterLink 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
    • beginOperationToConsumableLink

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

      XML Format

      The attributes here...
      <csvBeginOperationToConsumableLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.beginOperationToConsumableLink" >
      </csvBeginOperationToConsumableLink >
       
      <csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
       ...
      </csvIBAValue >
      <csvEndOperationToConsumableLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.endOperationToConsumableLink" >
       ...
      </csvEndOperationToConsumableLink >


      Supported API: true
    • endOperationToConsumableLink

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

      <csvEndOperationToConsumableLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.endOperationToConsumableLink" >
      </csvEndOperationToConsumableLink >

      Tag Definitions



      Supported API: true

      See Also:
    • createOperationToConsumableLink

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

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

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

      <csvCreateOperationToConsumableLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.createOperationToConsumableLink" >
       <csvtypedef> typedef </csvtypedef>
       <csvparentNumber> Operation Number </csvparentNumber>
       <csvparentVersion> Operation Version </csvparentVersion>
       <csvparentIteration> Operation Iteration </csvparentIteration>
       <csvparentView> Operation View </csvparentView>
       <csvchildNumber> ConsumableResource Number </csvchildNumber>
       <csvdefaultUnit> Unit </csvdefaultUnit>
       <csvquantity> Quantity </csvquantity>
       <csvallocationNumber> Allocation Number </csvallocationNumber>
       <csvdescription> Description </csvdescription>
       <csvscheduled> Scheduled </csvscheduled>
       <csvusageRate> Usage Rate </csvusageRate>
       <csvstepUsageRate1> Scheduled </csvstepUsageRate1>
       <csvstepUsageRate2> Scheduled </csvstepUsageRate2>
       <csvstepUsageRate3> Scheduled </csvstepUsageRate3>
       <csvstepUsageRate4> Scheduled </csvstepUsageRate4>
       <csvstepUsageRate5> Scheduled </csvstepUsageRate5>
       <csvstepUsageRate6> Scheduled </csvstepUsageRate6>
       <csvstepUsageRate7> Scheduled </csvstepUsageRate7>
       <csvstepUsageRate8> Scheduled </csvstepUsageRate8>
      </csvCreateOperationToConsumableLink>

      Tag Definitions

      Operation Number(Mandatory) Number of the operation to which workcenter has to be assoicated via operation to workcenter link
      ConsumableResource Number (Mandatory) Number of the consumbable resource
      Unit (Mandatory) Unit of the comsumablelink. Its an attribute on the link and is mandatory.
      Quantity (Mandatory) Quantity of the consumable resource. Its an attribute on the link and is mandatory.
      Usage Rate (Mandatory) Usage rate for the association. Its an attribute on the link and is mandatory. Its an integer value
      Allocation Number Allocation number to be used on the link. Its an attribute on the link and is optional.
      Scheduled Whether resource is scheduled or not. Its an attribute on the link and is optional. Its a boolean value and must be either of 'true' or 'false'
      Description Description of the association of consumbable resource to the operation. Its an attribute on the link and is optional.


      Supported API: true
      Parameters:
      nv - Name/Value pairs of OperationToConsumableLink 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
    • beginOperationToPartLink

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

      XML Format

      The attributes here...
      <csvBeginOperationToPartLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.beginOperationToPartLink" >
      </csvBeginOperationToPartLink >
       
      <csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
       ...
      </csvIBAValue >
      <csvEndOperationToPartLink handler="com.ptc.windchill.mpml.processplan.LoadProcessPlan.endOperationToPartLink" >
       ...
      </csvEndOperationToPartLink >


      Supported API: true
    • endOperationToPartLink

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

      <csvEndOperationToPartLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.endOperationToPartLink" >
      </csvEndOperationToPartLink >

      Tag Definitions



      Supported API: true

      See Also:
    • createOperationToPartLink

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

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

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

      <csvCreateOperationToPartLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.createOperationToPartLink" >
       <csvtypedef> typedef </csvtypedef>
       <csvparentNumber> Operation Number </csvparentNumber>
       <csvparentVersion> Operation Version </csvparentVersion>
       <csvparentIteration> Operation Iteration </csvparentIteration>
       <csvparentView> Operation View </csvparentView>
       <csvchildNumber> Part Number </csvchildNumber>
       <csvchildVersion> Part Version </csvchildVersion>
       <csvchildIteration> Part Iteration </csvchildIteration>
       <csvchildView> Part View </csvchildView>
       <csvdefaultUnit> Unit </csvdefaultUnit>
       <csvquantity> Quantity </csvquantity>
       <csvcomponentIDPath> Component ID Path </csvcomponentIDPath>
       <csvlineNumberPath> Line Number Path </csvlineNumberPath>
       <csvassemblyNumber> AssemblyMaster Number </csvassemblyNumber>
       <csvallocationType> Allocation Type </csvallocationType>
       <csvdescription> Description </csvdescription>
      </csvCreateOperationToPartLink>

      Tag Definitions

      Operation Number(Mandatory) Number of the operation to which workcenter has to be assoicated via operation to workcenter link
      Part Number (Mandatory) Number of the part to be allocated to operation
      Unit (Mandatory) Unit of the comsumablelink. Its an attribute on the link and is mandatory.
      Quantity (Mandatory) Quantity of the consumable resource. Its an attribute on the link and is mandatory.
      Usage Rate (Mandatory) Usage rate for the association. Its an attribute on the link and is mandatory. Its an integer value
      Allocation Type (Mandatory) Allocation type of the link. Its an attribute on the link and is mandatory. Valid values are 'consumed', 'destroyed', 'produced', 'disassembled'
      Component ID Path (Mandatory) The path of the allocated part from assembly to itself. Here we assume that the component ID Path given by user is correct one. So user has to be careful when creating assemlby and must set componentID on the partusagelinks via load framework and then pass that componentID path here. ComponentID path is list of componentId on the partusagelinks seperated byt '|'. Ex. 'partusageLinkcmpId001', 'partusageLinkcmpId001|partusagelinkcmdId002' Note: if component id path is not available, then you can pass the line number path. If that is also not provided then we will just try to get the componentid from the first usage we find between assembly and part being allocated. This last option will not work for phantom assemblies as we just check for usage at one level.
      Line Number Path (Mandatory) This is used to compute the component id path in case componentid path is not available. Using line number we will traverse from assemlby to the part to allocate trying to match the line number on the part usage link and if matched get the component id from matched usage links Line Number Path is list of line number on the partusagelinks seperated byt '|'. Ex. '0010', '0010|0020'
      AssemblyMaster Number (Mandatory) The number of the assembly from which the part is being allocated.
      Description Description of the association of consumbable resource to the operation. Its an attribute on the link and is optional.


      Supported API: true
      Parameters:
      nv - Name/Value pairs of OperationToPartLink 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
    • beginOperationToOperatedPartLink

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

      XML Format

      The attributes here...
      <csvBeginOperationToOperatedPartLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.beginOperationToOperatedPartLink" >
      </csvBeginOperationToOperatedPartLink >
       
      <csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
       ...
      </csvIBAValue >
      <csvEndOperationToOperatedPartLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.endOperationToOperatedPartLink" >
       ...
      </csvEndOperationToOperatedPartLink >


      Supported API: true
    • endOperationToOperatedPartLink

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

      <csvEndOperationToOperatedPartLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.endOperationToOperatedPartLink" >
      </csvEndOperationToOperatedPartLink >

      Tag Definitions



      Supported API: true

      See Also:
    • createOperationToOperatedPartLink

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

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

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

      <csvCreateOperationToOperatedPartLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.createOperationToOperatedPartLink" >
       <csvtypedef> typedef </csvtypedef>
       <csvparentNumber> Operation Number </csvparentNumber>
       <csvparentVersion> Operation Version </csvparentVersion>
       <csvparentIteration> Operation Iteration </csvparentIteration>
       <csvparentView> Operation View </csvparentView>
       <csvchildNumber> ConsumableResource Number </csvchildNumber>
       <csvquantity> Quantity </csvquantity>
       <csvdefaultUnit> Unit </csvdefaultUnit>
       <csvdescription> Description </csvdescription>
      </csvCreateOperationToOperatedPartLink>

      Tag Definitions

      Operation Number(Mandatory) Number of the operation to which part has to be assoicated via operation to Operated Part link
      Part Number(Mandatory) Number of the part to which operation has to be assoicated via operation to Operated Part link
      Description Description of the association of operated part to the operation. Its an attribute on the link and is optional.


      Supported API: true
      Parameters:
      nv - Name/Value pairs of OperationToOperatedPartLink 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
    • beginOperationProcessLink

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

      XML Format

      The attributes here...
      <csvBeginOperationProcessLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.beginOperationProcessLink" >
      </csvBeginOperationProcessLink >
       
      <csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
       ...
      </csvIBAValue >
      <csvEndOperationProcessLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.endOperationProcessLink" >
       ...
      </csvEndOperationProcessLink >


      Supported API: true
    • endOperationProcessLink

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

      <csvEndOperationProcessLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.endOperationProcessLink" >
      </csvEndOperationProcessLink >

      Tag Definitions



      Supported API: true

      See Also:
    • createOperationProcessLink

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

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

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

      <csvCreateOperationProcessLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.createOperationProcessLink" >
       <csvparentNumber> Operation Number </csvparentNumber>
       <csvparentVersion> Operation Version </csvparentVersion>
       <csvparentIteration> Operation Iteration </csvparentIteration>
       <csvparentView> Operation View </csvparentView>
       <csvchildNumber> ConsumableResource Number </csvchildNumber>
       <csvdescription> Description </csvdescription>
      </csvCreateOperationProcessLink>

      Tag Definitions

      Description Description of the association of manufacturing capability to the operation. Its an attribute on the link and is optional.


      Supported API: true
      Parameters:
      nv - Name/Value pairs of OperationProcessLink 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
    • beginPrecedenceConstraintLink

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

      XML Format

      The attributes here...
      <csvBeginPrecedenceConstraintLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.beginPrecedenceConstraintLink" >
      </csvBeginPrecedenceConstraintLink >
       
      <csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
       ...
      </csvIBAValue >
      <csvEndPrecedenceConstraintLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.endPrecedenceConstraintLink" >
       ...
      </csvEndPrecedenceConstraintLink >


      Supported API: true
    • endPrecedenceConstraintLink

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

      <csvEndPrecedenceConstraintLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.endPrecedenceConstraintLink" >
      </csvEndPrecedenceConstraintLink >

      Tag Definitions



      Supported API: true

      See Also:
    • createPrecedenceConstraintLink

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

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

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

      <csvCreatePrecedenceConstraintLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.createPrecedenceConstraintLink" >
       <csvparentNumber> Operation Number </csvparentNumber>
       <csvparentVersion> Operation Version </csvparentVersion>
       <csvparentIteration> Operation Iteration </csvparentIteration>
       <csvparentView> Operation View </csvparentView>
       <csvchildNumber> Constrained Operation Number </csvchildNumber>
       <csvchildName> Constrained Operation Name </csvchildName>
       <csvopLabel> usage link label </csvopLabel>
       <csvrequired> required </csvrequired>
       <csvconstraintType> Constraint Type </csvconstraintType>
      </csvCreatePrecedenceConstraintLink>

      Tag Definitions

      operation Label Operation holder label.
      constraint Type Valid values are 'Start to Start', 'Start to End', 'End to Start', 'End to End'
      required Valid values are true , false


      Supported API: true
      Parameters:
      nv - Name/Value pairs of PrecedenceConstraintLink 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
    • createOperationRepresentation

      public static boolean createOperationRepresentation(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvCreateOperationRepresentation" directive in the xml load file. Imports the information to create a Representation, and associate it with Operation
      Parameters:
      nv - Name/Value pairs of arguments. The arguments are as follows:
      • parentNumber : Number of the Operation
      • parentVersion
      • parentIteration
      • parentView
      • repName : Name of the representation.
      • repDirectory: Directory of the representation. Its relative to WTHome
      • repDefault
      • repCreateThumbnail : Create thumbnail or not. Valid values 'true', 'false'
      • repStoreEdz


      Supported API: true
      cmd_line - command line argument that can contain supplemental load data
      return_objects - Vector of the object(s) created by this method.
    • updateOperationToPartLink

      public static boolean updateOperationToPartLink(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Processes the "csvOperationToPartLink" directive in the XML load file. Update an OperationToPartLink object, updates the component id and component id path associated with the specified type definition, persists the OperationToPartLink, Operation Version and Iteration needs to be specified correctly to fetch the relevant OperationToPartLink for the update. This is ideally used to fix existing wrong data with missing component id and component id path and is not an ideal approach to update the link for other scenarios. This updates only the links for the given Version and Iteration of the Operation and not for all the links.

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

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

      <csvCreateOperationToPartLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.updateOperationToPartLink" >
       <csvtypedef> typedef </csvtypedef>
       <csvparentNumber> Operation Number </csvparentNumber>
       <csvparentVersion> Operation Version </csvparentVersion>
       <csvparentIteration> Operation Iteration </csvparentIteration>
       <csvparentView> Operation View </csvparentView>
       <csvchildNumber> Part Number </csvchildNumber>
       <csvchildVersion> Part Version </csvchildVersion>
       <csvchildIteration> Part Iteration </csvchildIteration>
       <csvchildView> Part View </csvchildView>
       <csvdefaultUnit> Unit </csvdefaultUnit>
       <csvquantity> Quantity </csvquantity>
       <csvcomponentIDPath> Component ID Path </csvcomponentIDPath>
       <csvlineNumberPath> Line Number Path </csvlineNumberPath>
       <csvassemblyNumber> AssemblyMaster Number </csvassemblyNumber>
       <csvallocationType> Allocation Type </csvallocationType>
       <csvdescription> Description </csvdescription>
      </csvCreateOperationToPartLink>

      Tag Definitions

      Operation Number(Mandatory) Number of the operation to which workcenter has to be assoicated via operation to workcenter link
      Part Number (Mandatory) Number of the part to be allocated to operation
      Unit (Mandatory) Unit of the comsumablelink. Its an attribute on the link and is mandatory.
      Quantity (Mandatory) Quantity of the consumable resource. Its an attribute on the link and is mandatory.
      Usage Rate (Mandatory) Usage rate for the association. Its an attribute on the link and is mandatory. Its an integer value
      Allocation Type (Mandatory) Allocation type of the link. Its an attribute on the link and is mandatory. Valid values are 'consumed', 'destroyed', 'produced', 'disassembled'
      Component ID Path (Mandatory) The path of the allocated part from assembly to itself. Here we assume that the component ID Path given by user is correct one. So user has to be careful when creating assemlby and must set componentID on the partusagelinks via load framework and then pass that componentID path here. ComponentID path is list of componentId on the partusagelinks seperated byt '|'. Ex. 'partusageLinkcmpId001', 'partusageLinkcmpId001|partusagelinkcmdId002' Note: if component id path is not available, then you can pass the line number path. If that is also not provided then we will just try to get the componentid from the first usage we find between assembly and part being allocated. This last option will not work for phantom assemblies as we just check for usage at one level.
      Line Number Path (Mandatory) This is used to compute the component id path in case componentid path is not available. Using line number we will traverse from assemlby to the part to allocate trying to match the line number on the part usage link and if matched get the component id from matched usage links Line Number Path is list of line number on the partusagelinks seperated byt '|'. Ex. '0010', '0010|0020'
      AssemblyMaster Number (Mandatory) The number of the assembly from which the part is being allocated.
      Description Description of the association of consumbable resource to the operation. Its an attribute on the link and is optional.


      Supported API: true
      Parameters:
      nv - Name/Value pairs of OperationToPartLink 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
    • createStandardOperationToPartLink

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

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

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

      <csvCreateOperationToPartLink handler="com.ptc.windchill.mpml.processplan.operation.LoadOperation.createStandardOperationToPartLink" >
       <csvtypedef> typedef </csvtypedef>
       <csvparentNumber> Number Path </csvparentNumber>
       <csvparentVersion> Version Path </csvparentVersion>
       <csvparentIteration> Iteration Path </csvparentIteration>
       <csvparentView> View Path </csvparentView>
       <csvchildNumber> Part Number </csvchildNumber>
       <csvchildVersion> Part Version </csvchildVersion>
       <csvchildIteration> Part Iteration </csvchildIteration>
       <csvchildView> Part View </csvchildView>
       <csvdefaultUnit> Unit </csvdefaultUnit>
       <csvquantity> Quantity </csvquantity>
       <csvcomponentIDPath> Component ID Path </csvcomponentIDPath>
       <csvlineNumberPath> Line Number Path </csvlineNumberPath>
       <csvassemblyNumber> AssemblyMaster Number </csvassemblyNumber>
       <csvallocationType> Allocation Type </csvallocationType>
       <csvdescription> Description </csvdescription>
      </csvCreateOperationToPartLink>

      Tag Definitions

      Number Path(Mandatory) Standard Operation Number path starting from first immediate non standard operation holder. Number Path separator is |.
      Version Path Standard Operation Version path starting from first immediate non standard operation holder. Version Path separator is |. It should be either empty or provide input for all Operation holder in path.
      Iteration Path Standard Operation Iteration path starting from first immediate non standard operation holder. Iteration Path separator is |. It should be either empty or provide input for all Operation holder in path.
      View Path Standard Operation View path starting from first immediate non standard operation holder. View Path separator is |. It should be either empty or provide input for all Operation holder in path.
      Part Number (Mandatory) Number of the part to be allocated to operation.
      Unit (Mandatory) Unit of the part usage of the part getting allocated. It’s an attribute on the link and is mandatory.
      Quantity (Mandatory) Quantity of the part getting allocated. It’s an attribute on the link and is mandatory.
      Allocation Type (Mandatory) Allocation type of the link. Its an attribute on the link and is mandatory. Valid values are 'consumed', 'destroyed', 'produced', 'disassembled'
      Component ID Path (Mandatory) The path of the allocated part from assembly to itself. Here we assume that the component ID Path given by user is correct one. So user has to be careful when creating assemlby and must set componentID on the partusagelinks via load framework and then pass that componentID path here. ComponentID path is list of componentId on the partusagelinks seperated byt '|'. Ex. 'partusageLinkcmpId001', 'partusageLinkcmpId001|partusagelinkcmdId002' Note: if component id path is not available, then you can pass the line number path. If that is also not provided then we will just try to get the componentid from the first usage we find between assembly and part being allocated. This last option will not work for phantom assemblies as we just check for usage at one level.
      Line Number Path This is used to compute the component id path in case componentid path is not available. Using line number we will traverse from assemlby to the part to allocate trying to match the line number on the part usage link and if matched get the component id from matched usage links Line Number Path is list of line number on the partusagelinks seperated byt '|'. Ex. '0010', '0010|0020'
      AssemblyMaster Number (Mandatory) The number of the related assembly from which the part is being allocated.
      Description Description of the link. It’s an attribute on the link and is optional.


      Supported API: true
      Parameters:
      nv - Name/Value pairs of OperationToPartLink 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