技术文章 - CS140636
如何实施 OIR 和 RuleAlgorithm 以根据 Windchill PDMLink 中的常量、IBA 和自定义序列生成文档编号
已修改: 18-Dec-2023
适用于
- Windchill PDMLink 9.1 to 12.1
说明
- 如何实现 OIR 和 RuleAlgorithm 根据常量、IBA 和自定义序列生成文档编号
- 每个文档子类型应使用唯一的自定义序列
- OIR 语法是什么?
- 如何实现wt.rule.algorithm.RuleAlgorithm接口以使用 OIR?
- 如何自定义自序列生成器类?
- 使用 OIR 实现自定义规则算法时出现异常
DocumentNumber {GEN:wt.enterprise.SequenceGenerator:XXXX:#:#}
com.ptc.core.command.common.InvalidConstraintForAttributeException: com.ptc.core.meta.container.common.ConstraintException: The value for attribute Number must be between 0 and 32 characters in length, inclusive. Constraint Violation in isValid()
Nested exception is: com.ptc.core.meta.container.common.ConstraintException: The value for attribute Number must be between 0 and 32 characters in length, inclusive. Constraint Violation in isValid()
wt.util.WTException: com.ptc.core.command.common.InvalidConstraintForAttributeException: com.ptc.core.meta.container.common.ConstraintException: The value for attribute Number must be between 0 and 32 characters in length, inclusive. Constraint Violation in isValid()
Nested exception is: com.ptc.core.meta.container.common.ConstraintException: The value for attribute Number must be between 0 and 32 characters in length, inclusive. Constraint Violation in isValid()
Nested exception is: com.ptc.core.command.common.InvalidConstraintForAttributeException: com.ptc.core.meta.container.common.ConstraintException: The value for attribute Number must be between 0 and 32 characters in length, inclusive. Constraint Violation in isValid()
Nested exception is: com.ptc.core.meta.container.common.ConstraintException: The value for attribute Number must be between 0 and 32 characters in length, inclusive. Constraint Violation in isValid()
at com.ptc.core.meta.container.common.impl.DefaultConstraintValidator.isValid(DefaultConstraintValidator.java:277)
at com.ptc.core.meta.container.common.impl.DefaultConstraintValidator.isValid(DefaultConstraintValidator.java:331)
at com.ptc.core.rule.server.delegate.init.TypeHelper.enforceConstraintsOnOirAtts(TypeHelper.java:307)
at com.ptc.core.rule.server.delegate.init.TypeHelper.getObject(TypeHelper.java:433)
at com.ptc.core.rule.server.delegate.init.TypeBasedInitRuleApplier.applyRule(TypeBasedInitRuleApplier.java:358)
at com.ptc.core.rule.server.delegate.init.TypeBasedInitRuleApplier.applyRule(TypeBasedInitRuleApplier.java:211)
at wt.rule.impl.StandardRuleService.applyRule(StandardRuleService.java:382)
at wt.rule.impl.StandardRuleService$1.notifyVetoableMultiObjectEvent(StandardRuleService.java:985)
at wt.events.StandardKeyedEventBranch.intDispatchEvent(StandardKeyedEventBranch.java:306)
at wt.events.StandardKeyedEventBranch.dispatchVetoableEvent(StandardKeyedEventBranch.java:255)
at wt.events.StandardKeyedEventDispatcher.intDispatchEvent(StandardKeyedEventDispatcher.java:304)
at wt.events.StandardKeyedEventDispatcher.dispatchVetoableEvent(StandardKeyedEventDispatcher.java:228)
at wt.services.StandardManagerService.intDispatchVetoableEvent(StandardManagerService.java:410)
at wt.services.StandardManagerService.dispatchVetoableEvent(StandardManagerService.java:303)
at wt.fc.StandardPersistenceManager.dispatchVetoableEvent(StandardPersistenceManager.java:2972)
at wt.fc.StandardPersistenceManager.dispatchVetoableEvent(StandardPersistenceManager.java:2952)
at wt.fc.StandardPersistenceManager.store(StandardPersistenceManager.java:1429)
at wt.fc.StandardPersistenceManager.store(StandardPersistenceManager.java:534)
at sun.reflect.GeneratedMethodAccessor713.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at wt.services.ServiceFactory$ServerInvocationHandler.invoke(ServiceFactory.java:399)
这是文章 140636 的 PDF 版本,可能已过期。最新版本 CS140636