Class LoadMfgProcess
java.lang.Object
com.ptc.windchill.mpml.mfgprocess.LoadMfgProcess
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
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanbeginMfgProcess(Hashtable nv, Hashtable cmd_line, Vector return_objects) Processes the "csvBeginMPMMfgProcess" directive in the XML load file.static booleancreateMfgProcess(Hashtable nv, Hashtable cmd_line, Vector return_objects) Processes the "csvMfgProcess" directive in the XML load file.static booleanendMfgProcess(Hashtable nv, Hashtable cmd_line, Vector return_objects) Processes the "csvEndMPMMfgProcess" directive in the xml load file.
-
Method Details
-
createMfgProcess
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.LoadFromFileto 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( ) and Carriage Return( ) 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 datareturn_objects-Vectorof the object(s) created by this method. Used bywt.load.StandardLoadServicefor accurate user feedback messages.- Returns:
true success false failure
-
beginMfgProcess
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 seecreateMfgProcess.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
Processes the "csvEndMPMMfgProcess" directive in the xml load file. Causes the cached operation to be checked-out, associates soft attribues from precedingIBAValueload 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:
-