Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hi All,
I have a requirement where the client wants Project "Name" field to be auto generated number.
Is this possible using configurations in 9.1 ? (i.e. via *.properties, *.xml, *.xconf Preference, OIR …etc)
<rulename>Project Name Rule</rulename>
<rulespecification>
<attributevalues objtype="wt.projmgmt.admin.Project2">
<attrvalue id="name" algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator"> <arg>{GEN:wt.enterprise.SequenceGenerator: Project_seq:08:0}</arg>
</attrvalue>
<attrconstraint id="name" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"/">
<value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/">
<value algorithm="com.ptc.core.rule.server.impl.GetHiddenConstraint"/">
</attrconstraint>
</attributevalues>
]]>
</rulespecification>
<ruletype type="INIT"></ruletype>
</enginerule>
<classname>wt.projmgmt.admin.Project2</classname>
</typebasedrule>
</organizationconfig>
==========================================================================
Hello,
We had a similar request at our company. We solved this by creating a workflow that calls an info engine task, to define the latest number, and renamed the object in the workflow.
The object was created from a template and the name depends on the value of a couple of attributes together with a sequences numbering.
Kind regards,