cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.

Customization of promotion request in WindChill 10.1 M030

ptc-4905823
1-Newbie

Customization of promotion request in WindChill 10.1 M030

Hi, Good Day to all

I have a requirement for Customization of promotion request in WindChill 10.1 M030.

In a lifecycle while promoting the parts and documents from one stage to another stage, parent part and associated child parts can be in different stages.

At any given point of time child part or document should not be ahead of the parent stage.

I am facing some problems while development

  • Code to get current life cycle
  • Get the list of names of all collected objects for promotion
  • How to get parent part
  • How to check is the child part or document is ahead of parent part stage in a lifecycle.

Please provide me some solution.

Thanks,

Shaikkh.

1 REPLY 1
KD
4-Participant
4-Participant
(To:ptc-4905823)

HI Shaikkh,

The following code is useful for getting child documents

wt.fc.QueryResult qr = wt.doc.WTDocumentHelper.service.getHasDependentWTDocuments(primaryBusinessObject);

while(qr.hasMoreElements())

wt.doc.WTDocument doc = (wt.doc.WTDocument)qr.nextElement();

To get child part

WTPartHelper.service.getUsedByWTParts(part.getMaster());

Insie WTPartHelper.service check all the methods you will get methods to get describeByDocuments , parentPart, childPart etc.

Top Tags