高级自定义 > 业务逻辑自定义 > Windchill Workgroup Manager 自定义 > 自定义 Windchill Workgroup Manager 请求
自定义 Windchill Workgroup Manager 请求
这是自定义 Windchill Workgroup Manager 请求的对象模型。
典型的自定义 Windchill Workgroup Manager 请求将从 IterationRequest 继承,并具有以下属性:
ServiceDescriptor - 有助于找到要调用的自定义服务的描述符
RequestInstructionsData - stringdict,也称为 Map <String, String>,用于传输预期的指令
IterationC11Instructions 的集合 - 对其执行操作的一组可持续对象,以及每个对象的 stringdict。
有两种类型的自定义 Windchill Workgroup Manager 请求:
带工作空间 (WorkspaceC11nRequest) 的自定义请求。这可用于自定义工作区操作。
无工作空间 (C11nRequest) 的自定义请求。这可用于自定义公用区操作。
如果 WorkspaceC11nRequest,则工作区为附加属性。
自定义响应 (C11nMessage) 是客户端应解释的典型 stringdict,也称为 Map <String, String> 对象。此外,还有一组 IterationC11nResponse。如果存在 WorkspaceC11nRequest,则会包含更新的工作区消息 (WorkspaceUpdateC11nMessage)。
WorkspaceUpdate 通过请求结果缓存 (RRC) 特性填充器模块进行处理,而 C11nMessageFolderedIterations 的一组丰富的固定消息会序列化回客户端。
C11nRequest
public interface C11nRequest
extends UwgmRequest, IterationRequest
{
public final static UwgmRequestType type = new
UwgmRequestType("uwgmsvc::C11nRequest");

public final static C11nRequest EMPTY = null;

// RequestInstructionData access methods
/**
* Get value of attribute RequestInstructionData
*/
public stringdict getRequestInstructionData ();
/**
* Assign value to attribute RequestInstructionData
*/
public void setRequestInstructionData (stringdict value);

// ServiceDescriptor access methods

/**
* Get value of attribute ServiceDescriptor
*/
public String getServiceDescriptor ();
/**
* Assign value to attribute ServiceDescriptor
*/
public void setServiceDescriptor (String value);

// IterationC11nInstruction access methods

/**
* Get value of attribute IterationC11nInstruction
*/
public IterationC11nInstruction.Iterator getIterationC11nInstruction ();

/**
* Size of collection IterationC11nInstruction
*/
public int sizeOfIterationC11nInstruction ();

/**
* Get content of collection IterationC11nInstruction as array
*/
public IterationC11nInstruction<] getIterationC11nInstructionArray ();

// BEGIN_CUSTOM_DEFS guid=49BA56C202A4 type=JAVA_INTERFACE_DEFS
// END_CUSTOM_DEFS guid=49BA56C202A4 type=JAVA_INTERFACE_DEFS
}
WorkspaceC11nRequest
Definition of interface com.ptc.windchill.uwgm.
soap.uwgmsvc.WorkspaceC11nRequest

Unified WGM Source Code Generation Utility
*/

//
// $$NONE
//

package com.ptc.windchill.uwgm.soap.uwgmsvc;

import com.ptc.windchill.uwgm.soap.bins11n.*;

import com.ptc.cipjava.*;
import com.ptc.windchill.uwgm.soap.uwgm.*;
import com.ptc.windchill.uwgm.soap.bins11n.*;

// BEGIN_CUSTOM_DEFS guid=49BA63010149 type=JAVA_INTERFACE_HEADER
// END_CUSTOM_DEFS guid=49BA63010149 type=JAVA_INTERFACE_HEADER

/**
*
*/
@UwgmBinRegisterable
public interface WorkspaceC11nRequest
extends UwgmRequest, C11nRequest, WithWorkspace
{
public final static UwgmRequestType type = new
UwgmRequestType("uwgmsvc::WorkspaceC11nRequest");

public final static WorkspaceC11nRequest EMPTY = null;

// BEGIN_CUSTOM_DEFS guid=49BA63010149 type=JAVA_INTERFACE_DEFS
// END_CUSTOM_DEFS guid=49BA63010149 type=JAVA_INTERFACE_DEFS
}
C11nMessage
public interface C11nMessage
extends UwgmMessage
{
public final static UwgmMessageType type = new
UwgmMessageType("uwgmsvc::C11nMessage");

public final static C11nMessage EMPTY = null;

// ResponseData access methods
/**
* Get value of attribute ResponseData
*/
public stringdict getResponseData ();

/**
* Assign value to attribute ResponseData
*/
public void setResponseData (stringdict value);

// IterationC11nResponse access methods
/**
* Get value of attribute IterationC11nResponse
*/
public IterationC11nResponse.Iterator getIterationC11nResponse ();

/**
* Size of collection IterationC11nResponse
*/
public int sizeOfIterationC11nResponse ();

/**
* Get content of collection IterationC11nResponse as array
*/
public IterationC11nResponse[] getIterationC11nResponseArray ();

// BEGIN_CUSTOM_DEFS guid=49BDE77E01EC type=JAVA_INTERFACE_DEFS
// END_CUSTOM_DEFS guid=49BDE77E01EC type=JAVA_INTERFACE_DEFS
}
WorkspaceUpdateC11nMessage
Definition of interface com.ptc.windchill.uwgm.soap.
uwgmsvc.WorkspaceUpdateC11nMessage

Unified WGM Source Code Generation Utility
*/

//
// $$NONE
//

package com.ptc.windchill.uwgm.soap.uwgmsvc;

import com.ptc.windchill.uwgm.soap.bins11n.*;

import com.ptc.cipjava.*;
import com.ptc.windchill.uwgm.soap.uwgm.*;
import com.ptc.windchill.uwgm.soap.bins11n.*;

// BEGIN_CUSTOM_DEFS guid=49BDE7C602D8 type=JAVA_INTERFACE_HEADER
// END_CUSTOM_DEFS guid=49BDE7C602D8 type=JAVA_INTERFACE_HEADER

/**
*
*/
@UwgmBinRegisterable
public interface WorkspaceUpdateC11nMessage
extends UwgmMessage, C11nMessage, WorkspaceUpdateMessage
{
public final static UwgmMessageType type = new
UwgmMessageType("uwgmsvc::WorkspaceUpdateC11nMessage");

public final static WorkspaceUpdateC11nMessage EMPTY = null;

// BEGIN_CUSTOM_DEFS guid=49BDE7C602D8 type=JAVA_INTERFACE_DEFS
// END_CUSTOM_DEFS guid=49BDE7C602D8 type=JAVA_INTERFACE_DEFS
}
请注意,自定义请求 (WorkspaceC11nRequestC11nRequest) 的创建是客户端自定义的一部分。Windchill 服务器可提供用于执行自定义请求的基础结构。客户端自定义还需要处理服务器对自定义请求的响应。在客户端自定义代码中使用了上面显示的接口 (C11nRequestWorkspaceC11nRequestC11nMessageWorkspaceUpdateC11nMessage),以在客户端实现自定义请求并处理自定义响应。
这对您有帮助吗?