Skip to main content
3-Newcomer
August 11, 2023
Question

How can I keep Windchill object using the same lifecycle template after revise

  • August 11, 2023
  • 6 replies
  • 1900 views
I am using Windchill PDMLink Release 10.2 and Datecode with CPS M030-CPS09

When create WTDocument on Windchill, it is configured to select lifecycle template in OIR. After revise, the lifecycle template changed automatically. I think PDMLink should keep using the same lifecycle template after revise. How can I do this ?

    6 replies

    HelesicPetr
    22-Sapphire II
    August 11, 2023

    Hi @zyuan 

    It is configuration case. 

    OOTB the object is created with lifecycle template defined in OIR, 

    The revision do not change the lifecycle template if the object has the same LC template as definition in OIR. 

    If the object has different lc template then OIR definition, revision will change it

     

    It can happen for example, if you move object to context where the lifecycle OIR definition is deferent then actual lifecycle template on the object, the revision change the lifecycle template based on the OIR in the context. 

     

    or if user uses workspace in one context where is different OIR definition then object which is added to the workspace from another context (product/project) in this case revision from creo could change the lifecycle. 

     

    PetrH

    zyuan3-NewcomerAuthor
    3-Newcomer
    August 11, 2023

    I total agree with you. @HelesicPetr 

     

    While I have a real problem that Windchill does not work like what we thinking.

    I configured document to select different lifecycle template named 'template A' and 'template B' in OIR.

    Then I create a document with 'template B' and change its state to 'Release'.

    I believe the document in new revision should keep using 'template B', But after revise, document's lifecycle template became ' template A'.

    I don't know how it happened.  

    HelesicPetr
    22-Sapphire II
    August 11, 2023

    Hi @zyuan 

    How do you configure OIR with "template A" and "template B" is there any condition if two templates are used ? 

    You can not configure two templates without conditions. 

     

    What context level do you change the OIR? Site/Org/Product/Library ?

    PetrH

    zyuan3-NewcomerAuthor
    3-Newcomer
    August 15, 2023

    It looks like I have found the cause.

     

    In OIR, there is a default lifecycle template, When revise, Windchill will use default lifecycle template instead of keeping current lifecycle template.

     

    <AttrValue id="lifeCycle.id" algorithm="com.ptc.core.foundation.lifecycle.server.impl.LifeCycleTemplateAttributeAlgorithm">
         <Arg>Developmental CC2 Lifecycle</Arg>
    </AttrValue>

     

    Is there any way to modify OIR ?