OIR - NUMBER GENERATOR
I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.0.1
How to set a different number ( concatenation of attributes) according to a different IBA value ?
I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.0.1
How to set a different number ( concatenation of attributes) according to a different IBA value ?
Hi
You have wrong test element.
Because there are two different types - string and Boolean the calculation can not be done by this Test method
You have to use the StringEqual test and it will work as you need
example>
<VarDef id="GeneratedNumberConfigurable" algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator">
<Attr id="STRINGINPUT"/>
<Attr id="RNUMINPUT"/>
<Arg>{GEN:wt.enterprise.SequenceGenerator:WTDOCUMENTID_seq:3:0}</Arg>
</VarDef>
<!-- set the number to a generated number -->
<AttrValue id="number" algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator">
<Arg>30W</Arg>
<!-- add a V prefix for variant parts -->
<Value algorithm="wt.rule.algorithm.BooleanBranch">
<Value algorithm="wt.rule.algorithm.StringEqualsTest">
<Attr id="UTC_CONFIGURABLE"/>
<Arg>true</Arg>
</Value>
<VarRef id="GeneratedNumberConfigurable" />
<Arg>{GEN:wt.enterprise.SequenceGenerator:WTPARTID_seq:10:0}</Arg>
</Value>
<!-- the sequence -->
<Arg></Arg>
</AttrValue>
The real number input also works

PS: the error is clear. You compare boolean type value true with string value "true" and the method can not do that.
That is why the method throws the error "there are two different type arguments".
PetrH
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.