Elements of the csvmapfile.dtd
The following section refers to <createPart> and <createIBAValue> elements. These elements are part of the OOTB product. <createPart> is defined in wt.part.LoadPart that uses JavaDoc. For more information on loading, refer to the section Introduction to Data Loading and the LoadFromFile Framework.
Loading Global Attributes
The <csvCreateSupplier>, <csvSourcingContext>, <csvBeginManfuacturerPart>, and <csvBeginVendorPart> elements support the loading of global attributes using the <csvIBAValue> tag. This tag is not nested within the relevant create tag, but instead, must be placed immediately after the create tag in the load file. After all global attributes are added to the object, the “end” tag that corresponds to the create tag you are using must be configured. For example, to add global attributes to a sourcing context, add the following lines:
<csvSourcingContext handler="com.ptc.windchill.suma.axl.LoadAXL.createContext">
<csvname>North America</csvname>
<csvtypedef>WCTYPE|com.ptc.windchill.suma.axl.AXLContext|com.ptcdemo.suma.
SumaContext</csvtypedef>
</csvSourcingContext>
<csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
<csvdefinition>SUMABoolean</csvdefinition>
<csvvalue1></csvvalue1>
<csvvalue2></csvvalue2>
<csvdependency_id></csvdependency_id>
</csvIBAValue>
<csvEndSourcingContext handler="com.ptc.windchill.suma.axl.LoadAXL.endCreateContext"/>
Element
Description
csvCreateWTOrganization
Creates a WTOrganization object. Values for <csvCodingSystem> use the ICD numbers for the code, not the name of the code. For example: CAGE is 0141, DUNS is 0060, and ISO is 0026.
For more details on this, refer the section Using Windchill Configuration Assistant to Configure Windchill.
csvCreateSupplier
Creates a Manufacturer or Vendor, or one of their subtypes. The type of the supplier you want to load is defined by the <csvSupplierType> element. Do not confuse it with <csvtype> that indicates the subtype. Supported values for <csvSupplierType> are "MANUFACTURER" and "VENDOR". To assign global attributes to the supplier, use subsequent <csvIBAValue> tags.
csvEndSupplier
This only needs to be specified if global attribute values were assigned to the supplier using the <csvIBAValue> tag.
csvAddContactToSupplier
Creates a contact and adds it to the supplier. The <csvSupplierType> element follows the same semantics as <csvSupplierType> of <csvCreateSupplier> element.
csvAddDocumentToSupplier
Associates previously created documents to the supplier. The <csvSupplierType> element follows the same semantics as the <csvSupplierType> element of <csvCreateSupplier>.
To create the document, use one of the standard LoadDoc elements, as shown in the next example.
For more information on loading documents, refer the section Using Windchill Configuration Assistant to Configure Windchill.
csvSourcingContext
Creates a sourcing context. To assign global attributes to the sourcing context, use subsequent <csvIBAValue> tags.
csvEndSourcingContext
This only needs to be specified if global attribute values were assigned to the sourcing context using the <csvIBAValue> tag.
csvManufacturerPart
Works the same way as the core <csvPart> element, with one exception. Instead of specifying an organization, you must specify a manufacturer. The manufacturer must exist in the organization context to which the given part belongs. To specify the manufacturer, you can use either the <csvmanufacturerID> or <csvmanufacturerName> element. The <csvmanufacturerID> must consist of the coding system identifier (0141 for CAGE codes for example) followed by a '$' and followed by the organizational ID.
csvBeginManufacturerPart
Works the same way as the core <csvBeginPart> element, with the additional semantics related to defining manufacturer, as described for the <csvManufacturerPart> element.
csvEndManufacturerPart
This element only needs to be specified if global attribute values were assigned to the manufacturer part using <csvIBAValue>.
csvVendorPart
Works the same way as the core <csvBeginPart> element, with the exception that vendor must be specified instead of organization. <csvvendorID> and <csvvendorName> follow the same semantics by their manufacturer counterparts, as defined for <csvManufacturerPart>.
csvBeginVendorPart
Works the same way as the core <csvBeginPart> element, with the additional semantics related to defining vendor, as described for the <csvVendorPart> element.
csvEndVendorPart
This element only needs to be specified if global attribute values were assigned to the manufacturer part using <csvIBAValue>.
csvAddAML
Adds a manufacturer part to the given OEM part. The OEM part is specified using the same semantics as <csvPart>. The manufacturer is specified using the same semantics as <csvManufacturerPart>.
csvAddAVL
Adds a vendor part to the given OEM part. The manufacturer part related to this vendor part can also be specified. The OEM part is specified using the same semantics as <csvPart>. The vendor is specified using the same semantics as <csvVendorPart>.
csvRemoveAML
Removes the manufacturer part from the OEM part. The OEM part is specified using the same semantics as <csvPart>. The manufacturer is specified using the same semantics as <csvManufacturerPart>. Note that this also removes all vendor parts related to this manufacturer part from the OEM part.
csvRemoveAVL
Removes the vendor part from the OEM part. The OEM part is specified using the same semantics as <csvPart>. The vendor is specified using the same semantics as <csvVendorPart>.
csvSetAMLPreference
Sets the sourcing preference for the given manufacturer part. The OEM part is specified using the same semantics as <csvPart>. The manufacturer is specified using the same semantics as <csvManufacturerPart>.
csvSetAVLPreference
Sets the sourcing preference for the given vendor part. The OEM part is specified using the same semantics as <csvPart>. The vendor is specified using the same semantics as <csvVendorPart>.
Was this helpful?