Object-Initialisation Rule - GetDiscreteSetConstraint Question
Hello,
I try to create a OIR that uses the GetDiscreteSetConstraint to specify a list of valid entries.
The documentation just lists the rule name com.ptc.core.rule.server.impl.GetDiscreteSetConstraint
but there is no example how to use it.
What I want is to assign a list of customers (currently > 1000) to a lot of different document types.
using the Attribute Manager / Constraint Editor is a pain as it takes about 5 minutes to open the GUI.
(And I need it to do it on a lot of types.)
So now I found this OIR rule in the documentation.
Has anyone experience with this?
My OIR code:
<AttrConstraint id="Customer"
algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetDiscreteSetConstraint">
<Arg>A</Arg>
<Arg>B</Arg>
<Arg>C</Arg>
</Value>
<Value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"> </Value>
</AttrConstraint>
As customer is an IBA I also tried <AttrConstraint id="IBA|Customer"
Without any effect.
Any help would be appreciated.
Carsten

