使用 LifeCycleTemplateAttributeAlgorithm 的默认生命周期示例
以下示例显示了将某文档的默认生命周期模板设置为本地化关键字 "BASIC_LIFECYCLE_NAME" (对于英文,使用 Basic) 的出厂设置 XML。用于决定显示内容的区域是服务器上所设置的区域设置 (而不是客户端上所设置的区域设置)。
本示例已调整了格式以便适合于页面。请始终在一行上输入每个标记:
<AttributeValues objType="wt.doc.WTDocument">
<!-- set the lifecycle -->
<AttrValue id="lifeCycle.id" algorithm=
"com.ptc.core.foundation.lifecycle.server.impl.LifeCycleTemplateAttributeAlgorithm">
<Arg>
<!-- Translation of the word "Basic" must be the same as the translation -->
<!-- done in commonLifeCycles.xml -->
<?loc-begin key="BASIC_LIFECYCLE_NAME" maxlen="30"?>Basic<?loc-end?>
</Arg>
</AttrValue>
</AttributeValues>
这对您有帮助吗?