다른 응용 프로그램과 통합 > 디지털 제품 추적 가능성 > ThingWorx에서 Windchill 디지털 제품 추적 가능성(DPT) 확장 구성 > 전제 조건
  
전제 조건
ThingWorxWindchill 확장 가져오기를 허용하기 위해 사용됩니다.
ThingWorx에서는 기본적으로 모든 사용자에 대해 확장 가져오기가 비활성화됩니다. 가져오기를 활성화하려면 platform-settings.json 파일을 구성합니다. 자세한 내용은 ThingWorx Platform 도움말 센터의 platform-settings.json 구성 세부 정보를 참조하십시오.
1. platform-settings.json 파일을 엽니다. 기본적으로 파일은 ThingworxPlatform 폴더에 있습니다.
2. 다음 ExtensionPackageImportPolicy 매개 변수를 추가하거나 업데이트하여 true에서 확장 가져오기를 허용하도록 합니다.
* 
모든 매개 변수는 기본적으로 false로 설정됩니다. 각 매개 변수에 대한 자세한 내용을 보려면 platform-settings.json을 참조하십시오.
"ExtensionPackageImportPolicy": {
"importEnabled": false,
"allowJarResources": false,
"allowJavascriptResources": false,
"allowCSSResources": false,
"allowJSONResources": false,
"allowWebAppResources": false,
"allowEntities": false,
"allowExtensibleEntities": false
},
3. platform-settings.json 파일을 저장하고 닫습니다.
구성에 대한 모범 사례를 확인하려면 ThingWorx Platform 도움말 센터에서 확장 가져오기를 참조하십시오.
* 
지원되는 ThingWorx 응용 프로그램 버전에 대한 설명서를 참조하십시오.
ThingWorx가 원본 간 요청을 허용하도록 구성되어 있습니다.
ThingWorx Flow 서버에서 원본 간 요청을 활성화하기 위해 서버에 CORS(Cross-Origin Resource Sharing) 필터를 추가합니다. 이 설정을 사용하면 외부 OSLC 서버가 ThingWorx Flow 서버의 데이터에 액세스할 수 있습니다.
다음 단계를 완료하여 웹 사이트에서 ThingWorx Flow에 대한 REST 호출을 수행하도록 합니다.
1. 실행 중인 Nginx 인스턴스를 모두 종료합니다.
2. Nginx 설치 디렉토리의 다음 위치에서 vhost-flow.conf 파일을 엽니다.
Windows: C:/Program Files/nginx-<버전>/conf/conf.d
Linux: /etc/nginx/conf/conf.d
3. vhost-flow.conf 파일의 location /Thingworx 섹션에서 proxy_set_header X-Content-Type-Options nosniff; 줄을 찾아 다음 줄을 추가합니다.
set $cors '';
# Right side of condition can be regular expression:
# if ($http_origin ~ '^https?://(localhost|www\.yourdomain\.com|www\.yourotherdomain\.com)')
if ($http_origin = '<Origin_that_calls_ThingWorx_Flow>') {
set $cors 'true';
}
if ($cors = 'true') {
add_header 'Access-Control-Allow-Origin' "$http_origin" always;
add_header 'Access-Control-Allow-Credentials' 'true' always;
}
# OPTIONS indicates a CORS pre-flight request
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '$http_origin';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Headers' 'Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH';
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
return 204;
}
4. <Origin_that_calls_ThingWorx_Flow>ThingWorx Flow에 액세스하려는 웹 사이트의 URL로 대체합니다.
5. Nginx 서비스를 다시 시작합니다.
CORS(Cross-Origin Resource Sharing) 설정에 대한 자세한 내용은 ThingWorx Platform 도움말 센터의 외부 웹 사이트에서 ThingWorx Flow로의 REST 호출 만들기를 참조하십시오.
* 
지원되는 ThingWorx 응용 프로그램 버전에 대한 설명서를 참조하십시오.
Windchill 서버가 OSLC 서버의 허용 목록에 보안 도메인으로 추가됩니다.
Windchill에서 위임된 인터페이스에 액세스할 수 있도록 Windchill RV&S, Windchill ModelerIBM Rational Doors NG으로 구성된 OSLC 서버에 보안 도메인으로 Windchill을 추가합니다. 보안으로 도메인을 추가하는 방법에 대한 자세한 내용은 참조 문서Windchill RV&S OSLC Server 안내서(12.3.0.0 이후), Windchill Modeler 도움말 센터에서 OSLC integration with Integrity ModelerOSLC integration with IBM Rational DOORS Next Generation을 참조하십시오.
* 
지원되는 Windchill RV&SWindchill Modeler 응용 프로그램 버전에 대한 설명서를 참조하십시오.
Windchill_Digital_Product_Traceability_Bundle zip 파일은 PTC.com의 PTC 소프트웨어 다운로드 페이지에서 다운로드합니다. 이 zip은 Windchill PDMLink 제품군에 있으며 해당 내용은 다음과 같습니다.
1. Windchill_Digital_Product_Traceability-extension - Windchill DPT 확장 zip입니다.
2. Windchill_Digital_Product_Traceability_Config_Things - 예제 사물 XML 파일의 zip입니다.
* 
브라우저에서 인증서 오류가 발생하는 경우 신뢰할 수 있는 CA(인증 기관)에서 발급하고 검증한 표준 SSL 인증서를 사용합니다. 자체 서명된 인증서가 있는 경우 자체 서명된 인증서를 브라우저에서 신뢰할 수 있는 인증서로 가져옵니다.
ThingWorx 사용자 프로파일에 필요한 권한에 대한 자세한 내용은 ThingWorx Platform 엔티티에 필요한 권한을 참조하십시오.
DPT 확장 구성에 대한 자세한 내용은 Windchill DPT 확장 구성을 참조하십시오.