다른 응용 프로그램과 통합 > Windchill Workgroup Manager 설명서 > AutoCAD > 관리 및 구성 > 비즈니스 사례 구성 > 속성 구성 > 위임 편집
  
위임 편집
Windchill에서는 다운로드 시 저작 응용 프로그램 부품으로 매개변수를 삽입하는 데 사용할 수 있는 서버 측 위임을 제공합니다. 이 메커니즘은 정보를 다른 저작 응용 프로그램 매개변수와 같이 사용할 수 있을 경우(예: 정보를 드로잉 양식에 추가할 때) 서버에서 저작 응용 프로그램으로 정보를 전달하는 데 사용할 수 있습니다. PTC 또는 PROI로 시작하는 매개변수는 예약된 시스템 매개변수로 취급되며, 사용자 정의를 통해 전파할 수 없습니다. 이러한 매개변수를 사용자 정의로 추가한 경우 이 매개변수는 다운로드 서비스에 의해 무시됩니다.
* 
사용자 정의 매개변수는 다운로드 시 클라이언트에게 제공되고 체크 인 등과 같은 Windchill 작업 후에는 CAD 응용 프로그램 세션에서 업데이트되지 않습니다. 예를 들어, 사용자 정의 매개변수에 CAD 문서 번호 값을 지정할 경우 그 값은 다운로드 시 클라이언트에게 제공됩니다. 나중에 CAD 문서 번호가 다시 지정되는 경우 저작 응용 프로그램 세션 또는 로컬 캐시의 값은 자동으로 업데이트되지 않습니다. Windchill 서비스 위임 메커니즘을 사용하여 사용자 정의할 수 있습니다.
다음 단계는 사용자 정의 프로세스에 대한 설명입니다.
1. 인터페이스 ModeledAttributesDelegate를 구현하는 Java 클래스를 작성합니다. 인터페이스 정의는 다음과 같습니다.
package com.ptc.windchill.uwgm.proesrv.c11n;

import java.util.Collection;
import java.util.HashMap;

import wt.util.WTException;

public interface ModeledAttributesDelegate
{
// getAvailableAttributes() returns
// HashMap<String, Object> which contains
// HashMap<Attribute name, Attribute type>
HashMap getAvailableAttributes();

// getModeledAttributes(Collection docs) returns
// HashMap<input object, HashMap<Attribute name,
Attribute value>>
HashMap getModeledAttributes(Collection docs)
throws WTException;
}
<Windchill home>/codebase/com/ptc/windchill/uwgm/proesrv/c11n/
DefaultModeledAttributesDelegate.java
에 있는 샘플 구현을 참조하십시오.
2. 다음 등록 정보를 추가하도록 <Windchill>에 있는 site.xconf 파일을 편집하여 서버에서 사용자 정의 서비스의 가용성을 나타냅니다.
<Service context="default"
name="com.ptc.windchill.uwgm.proesrv.c11n.ModeledAttributesDelegate"
targetFile="codebase/service.properties">
<Option cardinality="singleton"
requestor="java.lang.Object"
serviceClass="com.ptc.windchill.uwgm.proesrv.c11n.DefaultModeled
AttributesDelegate"/>
</Service>
serviceClass 값 대신 클래스 경로를 사용합니다. 즉,
com.ptc.windchill.uwgm.proesrv.c11n.Default
ModeledAttributesDelegate
값을 클래스 경로로 대체합니다.
3. 그런 다음 xconfmanager 도구를 사용하여 변경 사항을 service.properties 파일에 적용합니다.
Runxconfmanager -p
4. Windchill을 다시 시작합니다.