Configuring the Windchill DPT Extension
1. Import the extension and verify the ThingWorx entities and reference examples.
a. Windchill_Digital_Product_Traceability-extension — Import this zip file to ThingWorx Platform. Verify that the following entities exist in ThingWorx Composer after the DPT extension is imported:
* 
The Windchill product version in the imported extension is displayed in the following format:
xx.x.xxx
Here, the first four digits represent the Windchill release, and the last two digits represent the Critical Patch Set (CPS) release number.
For example, a CPS 03 release of Windchill release 12.0.0 is represented as 12.0.003 in the extension.
Entity
Description
Type
OslcDataServicesThing
This Thing contains the services for OSLC resource that are invoked from Windchill.
Thing
OslcFlowsThing
This Thing contains the flow services that fetches data from the remote OSLC system using ThingWorx Flow.
Thing
OslcValidationFlowThing
This Thing contains the default validation flow thing.
Thing
OslcValidationServicesThing
This Thing contains validation services for OSLC resources that are invoked from Windchill.
Thing
PTC-PLM
PTC-PLM:TRACELINKS model tag is used to tag all entities available in the extension. For more information, see the help topic Tags in the ThingWorx Platform Help Center.
PTC-PLM: TRACELINKS-DPT-EXTENSION-PROPERTIES model tag, by default, enables the Windchill DPT extension to use the DPTExtensionPropertiesExampleConfigThing.
PTC-PLM:TRACELINKS ROOT SELECTION DIALOG model tag, when added to the configuration Thing, the root is displayed in the Select Context table. When the tag is not added, the complete tree structure is displayed in the Select Context table. This tag is specific to Windchill Modeler.
PTC-PLM:TRACELINKS-OSLC-QUERY-SEARCH model tag, when added to the configuration Thing, uses the external resource search picker to display the external OSLC resource. When this tag is not added, the selection dialog box displays the external OSLC resource. Out of the box, the PTC-PLM:TRACELINKS-OSLC-QUERY-SEARCH tag is added to the ModelerExampleConfigThing, and CodebeamerExampleThing.
* 
When PTC-PLM:TRACELINKS-OSLC-QUERY-SEARCH and PTC-PLM:TRACELINKS ROOT SELECTION DIALOG tags are added for an OSLC configuration Thing, the PTC-PLM:TRACELINKS ROOT SELECTION DIALOG tag is ignored.
PTC-PLM:TRACELINKS-OSLC-QUERY-SELECT-ALL model tag should be specified for the IBM Rational Doors NG example configuration Thing when using PTC-PLM:TRACELINKS-OSLC-QUERY-SEARCH tag.
ModelTagVocabulary
PTC-PLM-VALIDATION-FLOWS
PTC-PLM-VALIDATION:modeler model tag is used to identify a validation flow thing. See the example ModelerValidationFlowThing for reference. For more information, see the topic Tags in the ThingWorx Platform Help Center.
ModelTagVocabulary
PTC.PLM.TraceLinks.AttributeMappingConfigDataShape
This Data Shape is used in OSLCResourceAttributeMappingConfigTable for attribute mapping.
DataShape
PTC.PLM.TraceLinks.DPTExtensionPropertiesThingTemplate
Contains the configuration properties for Windchill_Digital_Product_Traceability-extension.
ThingTemplate
PTC.PLM.TraceLinks.OslcDataServicesThingShape
This Thing Shape contains the service contract defined for Windchill.
ThingShape
PTC.PLM.TraceLinks.OslcDataServicesThingTemplate
This Thing Template contains data services defined for Windchill
ThingTemplate
PTC.PLM.TraceLinks.OslcFlowsTemplate
This Thing Template contains the flow services.
ThingTemplate
PTC.PLM.TraceLinks.OslcMappingConfigThingTemplate
This Thing Template is used to create configuration thing for each external system.
ThingTemplate
PTC.PLM.TraceLinks.OslcValidationServicesThingTemplate
This Thing Template contains validation services for Windchill.
ThingTemplate
PTC.PLM.TraceLinks.ResourceShapeAttributeMappingDataShape
This Data Shape is used in OSLCResourceShapeConfigTable for attribute mapping.
DataShape
PTC.PLM.TraceLinks.SearchAttributeMappingConfigDataShape
This Data Shape is used in OSLCSearchResultConfigTable for attribute mapping.
DataShape
TRACELINKS
TRACELINKS :OSLC-FLOWS model tag is used to tag all entities available in the extension. For more information, see the topic Tags in the ThingWorx Platform Help Center.
ModelTagVocabulary
Windchill_Digital_Product_Traceability-12.1.200.jar
This Resource is a part of the Windchill_Digital_Product_Traceability-extension.
Resource
* 
Ensure that correct permissions are enabled on the above listed entities. See the section Permissions for ThingWorx Platform Entities.
* 
A Model Tag is made up of Vocabulary and Terms. For example, in PTC-PLM-ValidationFlows:modeler tag, PTC-PLM-ValidationFlows is the Vocabulary and modeler is the value for Terms. The value of a model tag is unique for a Thing.
b. Windchill_Digital_Product_Traceability_Config_Things — Extract the folder, then import each XML file to ThingWorx Platform. Use the reference example Things as a reference for configuring Things. Verify that the following XML files have been imported:
Entities
Description
DoorsExampleConfigThing
This example Thing contains reference configuration for IBM Rational Doors NG.
ModelerExampleConfigThing
This example Thing contains reference configuration for Windchill Modeler.
WRVSExampleConfigThing
This example Thing contains reference configuration for Windchill RV&S.
CodebeamerExampleThing
This example Thing contains reference configuration for Codebeamer.
DPTExtensionPropertiesExampleConfigThing
When tagged with TRACELINKS-DPT-EXTENSION-PROPERTIES model tag, Windchill DPT extension can use the following defined properties.
CACHE-EXPIRY- Determines the validity of the cache entries. The default is set to 5 minutes.
SCHEDULER-INTERVAL—Determines the frequency at which the cache entries are automatically purged. The default is set to 30 minutes.
CACHE-USERS—Determines the number of users in the cache entries. The default is set to 200.
CACHE-RESOURCES—Determines the number of resources that can be cached per user. The default is set to 100.
LARGE-PREVIEW-SHOW-DIMENSIONS—Determines whether to show large preview in a new tab. When set to No, the default, large preview opens in a new tab. When set to Yes, the preview opens in a pop-up window.
* 
Out-of-the-box, this tag is added to the properties example configuration Thing.
OSLC-QUERY-PAGESIZE—Determines the number of remote objects that should be displayed per page. Out of the box, it is set to 50.
* 
You can update the value of these configuration properties. To apply the changes, restart the ThingWorx Foundation service.
ModelerValidationFlowThing
This example Thing contains reference for customizing validation flow for Windchill Modeler. An administrator can customize a validation flow thing based on the business requirement. See the example ModelerValidationFlowThing for reference.
* 
Out of the box, this tag is added to the properties example configuration Thing.
You can update the value of these configuration properties. To apply the changes, restart the ThingWorx Foundation service.
2. In ThingWorx Flow, use the following instructions and create a new connection for the OSLC system with which integration is required. See the topic Creating and Managing Connections in ThingWorx Platform Help Center:
a. Create a Connection for OSLC system.
For basic authentication, select the OSLC Basic connection type.
For SSO configuration, create an OAuth connection.
* 
You must accept the grant approval for the OSLC OAuth session connection object. For more information, see Creating OAuth Client Connection for ThingWorx.
b. Enter the following information in the Add Connection window:
Connection Label — Type a name for the Connection. The connection name specified here is used in the configuration Thing.
Catalog URL — Type the catalog URL of OSLC server of the external system. Refer to the Windchill RV&S OSLC Client guide (12.3.0.0 onwards) on Reference Documents, OSLC integration with Integrity Modeler, and OSLC integration with IBM Rational DOORS Next Generation in the Windchill Modeler Help Center.
* 
Refer to the documentation for your supported version of Windchill RV&S and Windchill Modeler applications.
Login credentials to the service account of the external system to access the OSLC server.
Concurrent Requests — Specify the number of simultaneous resource requests invoked from ThingWorx Flow. The default value is 5.
Administrators can modify the number of requests based on the configuration of the server.
c. Save the connection.
d. Click Close.
3. Configure ThingWorx Platform to integrate with OSLC servers of the external system. In ThingWorx Platform, create a configuration and validation Thing.
a. To create a configuration Thing:
i. Navigate to Things > New and specify the values of the attributes. Select PTC.PLM.TraceLinks.OslcMappingConfigThingTemplate as the Base Thing Template.
ii. In the Configuration tab, configure the mappings as explained in the following tables. You can refer to the WRVSExampleConfigThing as an example and enter the details for OSLC system.
OSLCServerMappingConfigTable
Attribute
Description
Server
Name of the external OSLC server.
BaseUrl
Base URL of the external OSLC server.
ConnectionObject
Name of the Connection created for the external OSLC server.
Tag
Value of Terms that is defined in the PTC-PLM-Validation-Flows model tag vocabulary to identify the remote server.
This step optional. This step is required only when you use a validation flow. See the ModelerValidationFlowThing example in Sample Configurations for reference.
For more information on adding tags, see the topic Tags in the ThingWorx Platform Help Center.
OSLCResourceMappingConfigTable
Attribute
Description
WindchillType
Internal name of the Requirement or Architecture Resource from Type Management in Windchill. The trace link is created to the Resource.
OSLCResourceType
Type of the Requirement Resource, Architecture Resource, or their subtypes defined in the external OSLC server. The value of the OSLCResourceType is the name of the resources and their subtypes as configured in the external OSLC server. For example, in Windchill Modeler, Activity is defined as a subtype of Architecture domain Resource. A user can define the name as Resource|Activity where, Activity is the subtype for the OSLC type Resource that belongs to the Architecture domain. The name specified for an Architecture Resource type should pipe separated.
For information about the internal name of Requirement or Architecture Resource, see Types and Attributes in System Compatibility and Requirements.
* 
Do not remap an OSLC resource type to Windchill object type if the OSLC resource type is already mapped to a Windchill object type. Remapping of Windchill object type to OSLC resource type, initially defined in ThingWorx, after the object has been traced in Windchill, can lead to data corruption.
OSLCResourceAttributeMappingConfigTable
Attribute
Description
WindchillTableId
Table ID in Windchill which displays the data from external OSLC server.
WindchillType
Internal name of the Requirement or Architecture Resource from Type and Attribute Management in Windchill.
Attribute Mapping for OSLCResourceAttributeMappingConfigTable
Attribute
Description
WindchillAttribute
Name of the Windchill attribute to be displayed in the Windchill table.
OSLCResourceAttribute
Name of the OSLC resource attribute.
* 
To add a custom attribute for a remote OSLC system, follow the naming convention prefix:propertyName. Here, the prefix is the affix added before the property name and propertyName is the attribute name defined by the OSLC server. For example, for a custom attribute state, the OSLCResourceAttribute value for Windchill RV&S is wrvs:state.
WindchillAttributeDataType
Data type of the Windchill attribute. String, Timestamp, and RichText are the data type values supported out-of-the-box.
IsPreview
When IsPreview is selected for an attribute, it displays the HTML representation of the traced remote object as exposed by the external OSLC server.
Select the IsPreview checkbox to display small and large previews.
IsPreview is available on the attributes of data type String and RichText. Small preview is displayed for both the data types, however, large preview is displayed only for attributes of data type String.
OSLCResourceShapeConfigTable
Attribute
Description
OSLCResourceType
Supported resource types of Requirement domain, Architecture domain, or Change domain, as defined in the external OSLC server. The value of the OSLCResourceType is the name of the resources, as configured in the external OSLC server.
OSLCResourceShapeURI
URI of the OSLC resource shape for those OSLC servers that do not expose resource shape with OSLC query service, but expose resource shape with another service. For example, IBM Rational Doors NG OSLC server exposes resource shape with Creation Factory service.
Attribute Mapping for OSLCResourceShapeConfigTable
Attribute
Description
WindchillAttribute
Name of the Windchill attribute to be displayed in the Filter Criteria pane of the external resource search picker.
OSLCResourceAttribute
To add a value for an OSLC attribute, follow the naming convention prefix:propertyName. Here, the prefix is the affix added before the property name and propertyName is the attribute name defined by the OSLC server. For example, for an attribute state exposed by Windchill RV&S OSLC server, the OSLCResourceAttribute value is dcterms:state.
OSLCAttributeDataType
Data type of the OSLC resource. String, LangString, XMLLiteral, Boolean, DateTime, Decimal, Double, Float, and Integer are the supported OSLC data type values.
OSLCSearchResultConfigTable
Attribute
Description
WindchillType
Supported Windchill resource types for Requirement domain, Architecture domain, or Change domain.
Attribute Mapping for OSLCSearchResultConfigTable
Attribute
Description
WindchillAttribute
Name of the Windchill attribute to be displayed in the Search Result Table pane of the external resource search picker.
OSLCResourceAttribute
Name of the OSLC resource attribute.
* 
To add a custom attribute for a remote OSLC system, follow the naming convention prefix:propertyName. Here, the prefix is the affix added before the property name, and propertyName is the attribute name defined by the OSLC server. For example, for a custom attribute state exposed by Windchill RV&S OSLC server, the OSLCResourceAttribute value for Windchill RV&S is dcterms:state.
WindchillAttributeDataType
Data type of the Windchill attribute. String, Timestamp, and RichText are the data type values supported out-of-the-box.
iii. Click Save and Continue.
b. A validation flow thing comprises of flow services that validate whether a selected resource type in Windchill matches the selected OSLC resource type in the OSLC delegated dialog. The Windchill resource type is available in the Type menu in Add Traces window. The ModelerValidationFlowThing is an example flow thing available out-of-the-box. For more information, see Sample Configurations. The figure below illustrates the validation workflow.
To create a validation flow thing, perform the following steps. Importing the ModelerValidationFlowThing example thing is a prerequisite to creating a validation flow thing
i. Select the ModelerValidationFlowThing and click Duplicate.
ii. In the General Information tab, specify the value of Name and Tags attributes.
Tag takes the value of Terms that is created in the PTC-PLM-Validation-Flows model tag vocabulary to identify the external server. In the PTC-PLM-Validation-Flows tag, specify a value in Terms for the external server with which you want to integrate. Specify the same Terms value in the Tag field in the OSLCServerMappingConfigTable.
iii. Click Save.
For more information on prerequisites required for configuring DPT extension in ThingWorx Platform, see Prerequisites.
For more information on permissions required by the ThingWorx user profiles, see Permissions for ThingWorx Platform Entities.
Isto foi útil?