Monday, December 11, 2017

How to set up OIR to choose a LifeCycle via Drop Down List at object creation Wizard

Here is the steps,
Create a soft type and download a OIR. now edit OIR as shown below,


<!-- set the lifecycle -->
<AttrValue id="lifeCycle.id" algorithm="com.ptc.core.foundation.lifecycle.server.impl.LifeCycleTemplateAttributeAlgorithm">
    <Arg>Basic</Arg>
</AttrValue>


.
.
.

<!-- specify AttrConstraint tag -->
<AttrConstraint id="lifeCycle.id" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
    <Value algorithm="com.ptc.core.foundation.lifecycle.server.impl.DiscreteLifecycleTemplateSetAlgorithm">
        <Arg>Release</Arg>
        <Arg>Basic</Arg>
        <Arg>Review</Arg>
        <Arg>Requirement</Arg>

    </Value>
    <Value algorithm="com.ptc.core.rule.server.impl.GetServerPreGeneratedValue"/>
</AttrConstraint>


Upload this OIR and now we will find drop down against the Life-cycle template.

No comments:

Post a Comment

Windchill with HTTPS

Using below steps, we can configure Windchill to listen HTTPS connection. 1. Reconfigure Apache to use HTTPS (SSL). 2. Reconfigure Windch...