Windchill
使用 Windchill 连接器可访问并执行 Windchill 操作。有关 Windchill 的详细信息,请参阅 Windchill 帮助中心
发行版本
8.4.1
支持的操作
检入
检出
修订
支持的触发器
支持的连接器类型
OAuth
OAuth (指定用户)
OAuth (会话用户)
Windchill 服务器设置的先决条件
Windchill 操作基于 Windchill REST Services (WRS) 构建。要在 ThingWorx Flow 中执行任何 Windchill 操作,必须安装 WRS。
WRS 2.0 已经过测试和认证,可与 Windchill 操作配合使用。
ThingWorx Flow 配置为使用高于默认 WRS 的版本
如果希望 ThingWorx Flow 使用高于 WRS 2.0 的 WRS 版本,则需要在 ThingWorx Flow 服务器上更新 Windchill settings.json 文件。为此,可执行以下操作:
1. 运行以下命令从 ThingWorx Flow 的实例下载 Windchill 配置设置:
flow-deploy settings download -f <Path_to_Customization_File> -t <ThingWorx_Base_URL> -u <ThingWorx_Administrator_Username> -p '<ThingWorx_Administrator_Password>' -c windchill -s default
此命令会将 settings.json 文件下载到您在命令中使用 -f 自变量指定的位置。
2. 根据您的需求更新 settings.json 文件并进行保存。
要为 Windchill 连接器使用高于默认 WRS 的 WRS 版本,请将 UseLatestDomainVersions 更新为 true
要为 Windchill 连接器使用默认 WRS 域版本,请将 UseLatestDomainVersions 更新为 false
运行以下命令以将配置设置上载到 ThingWorx Flow 实例:
flow-deploy settings upload -f <Path_to_Customization_File> -k UseLatestDomainVersions -t <ThingWorx_Base_URL> -u <ThingWorx_Administrator_Username> -p '<ThingWorx_Administrator_Password>' -c windchill -s default
此命令会采用 settings.json 文件中 UseLatestDomainVersions 的值,并将其上载到 ThingWorx Flow 服务器。
* 
建议不要将 ThingWorx Flow 配置为使用未经过测试和认证的 WRS 版本。并非所有功能均可用于已设置的 WRS 版本。
配置 ThingWorx Flow 以使用不同的 Windchill 域版本
如果希望 ThingWorx Flow 为 WRS 应用各种 OData 域版本,则需要更新 ThingWorx Flow 服务器上的 Windchill domainVersionConfig.json 文件。为此,可执行以下操作:
1. 导航至文件夹 Installation_Directory > modules > node_modules > ptc-windchill-connector > common > lib > v1。使用所需的 OData 域版本打开和更新 domainVersionConfig.json 文件。
2. ThingWorx Composer 中执行 WorkflowSubsystem 内的 RefreshMetadata 服务。
3. 重新启动所有 ThingWorx Flow 服务。
这对您有帮助吗?