TraceLinks Reviewer WinDU 任务
本部分介绍在 Windchill Diagnostic Utility (WinDU) 中运行 TraceLinks Reviewer 诊断任务的先决条件步骤。此任务将扫描 Windchill 中的所有追溯链接,并生成 CSV 报告以列出其有效性状况。
先决条件
在运行 TraceLinks Reviewer 诊断任务之前,请完成以下步骤:
1. ThingWorx Flow 中添加 OSLC 连接器:
对于非 SSO 环境,添加基本 OSLC 连接器。
对于启用 SSO 的环境,添加基于 OAuth (指定用户) 的 OSLC 连接器。
有关支持的 OSLC 类型的详情,请参阅 ThingWorx Flow 帮助中心的支持的 OSLC 连接器类型
* 
确保使用有权访问整个系统中 OSLC 数据的用户 (例如,OSLC 服务器系统管理员) 的登录凭据来配置连接器。
为每个外部 OSLC 服务器创建单独的 OSLC 连接器。
2. 在参考配置事物 (例如,PTCCodebeamerConfigThing) 的“特性”选项卡上的 OSLC-CONNECTION_NAME 特性中,输入用于配置 OSLC 连接器的“连接器标签”
3. ThingWorx Platform 中创建应用程序密钥。
有关详情,请参阅 ThingWorx Platform 帮助中心的“应用程序密钥”。
4. 运行 captureIntegrationConnection.[sh|bat] 实用程序。
Windchill shell 执行以下命令:
captureIntegrationConnection.[sh|bat] -n <Connection Name> -b <Base URL> -a <Authentication Delegate Class Name> -h "<Request Headers>" -s "<Base64 Encoded Secrets>"
在实用程序中指定以下参数:
参数
说明
<Connection Name>
DPT 集成连接的名称。
对于 ThingWorx,指定 twx
<Base URL>
ThingWorx 连接的基本 URL。
<Authentication Delegate Class Name>
身份验证委派类的名称。
对于 ThingWorx,指定 com.ptc.windchill.integrations.auth.TWXAuthDelegate
<Request Headers>
请求标头。
对于 ThingWorx,指定 x-thingworx-session=false|Content-Type=application/json|Accept=application/json
<Base64 Encoded Secrets>
ThingWorx 的 Secret 应用程序密钥。
* 
应用程序密钥必须采用 base64 编码,并指定为 "appkey=base64 encoded value of application key"。
示例:
captureIntegrationConnection.[sh|bat] -n twx -b https://thingworx-dev.acme.com -a com.ptc.windchill.integrations.auth.TWXAuthDelegate -h "x-thingworx-session=false|Content-Type=application/json|Accept=application/json" -s "appkey=YWJjZDEyMzQtZW1NiaDcLWlqay1sbW5Fyc3R1OTA="
* 
可使用 com.ptc.linkreviewer.batchsize 特性修改批处理大小。默认值为 200。
可使用 Windchill 诊断任务排期程序TraceLinks Reviewer 诊断任务进行排期。
执行 TraceLinks Reviewer 任务
完成所有先决条件后,在 Windchill Diagnostic Utility 中运行 TraceLinks Reviewer 诊断任务。有关详情,请参阅 Windchill Diagnostic Utility Guide (《Windchill Diagnostic Utility 指南》)。
这对您有帮助吗?