OIR for object to have year included in the sequence number
Hi All,
I am trying to come up with an OIR of object (lets say for wtPart or wtDocument) in windchill, in which I want the sequence number for the object should be of below form:
PRT-YYYY-XXXX (X= 0-9) (Y is year ).
I made the OIR something like:
<attrvalue =" id="number"" =" algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator"" =" ignore="false"" =" force="false"" =" final="false">
<arg>PRT-2012-</arg> <arg>{GEN:wt.enterprise.SequenceGenerator:WTPARTID_seq:6:0}</arg> </attrvalue>
But this will only solve the temporary problem. I want the YYYY to be updated automatically once the year changes.
Can we build any intelligence like this in OIR?
Please suggest.

