Skip to main content
17-Peridot
January 15, 2018
Solved

How to create a new view version if Revise Transition is not set

  • January 15, 2018
  • 3 replies
  • 4206 views

Hi

Is there any possibility to create a new view version of a WTPart where the "Revise Transition" is not defined?

If I use 

 

WTPart mPart = (WTPart) ViewHelper.service.newBranchForView(part, "Manufacturing");
mPart = (WTPart) PersistenceHelper.manager.store(mPart);

I will get the error, that no revise transition is not defined. The method ViewHelper.service.newBranchForView does not throw any exception. This is thrown when storing the new WTPart.

 

Caused by: (wt.lifecycle.lifecycleResource/223) wt.util.WTException: Revise transitions not defined for current version in life cycle template.

 

I don't wan't to set any "dummy" revise transition for only creating a new view. Did anybody find a workaround?

Thanks for any help.

Best answer by BjoernRueegg

Unfortunately it looks like that there is no possibility to create a new View Version without having set a revise transition. 

A PTC support case didn't help me either.

3 replies

16-Pearl
January 15, 2018

Hi @BjoernRueegg,

 

Can you give it a try:

 

ViewHelper.service.newBranchForView(seed, "Manufacturing");

Regards,

Shirish

16-Pearl
January 15, 2018

My mistake. It is the same API. Smiley Sad

20-Turquoise
January 15, 2018

You might try PersistenceServerHelper instead of PersistenceHelper to persist the new part view version:

https://www.ptc.com/en/support/article?n=CS96632

 

I have seen PersistenceServerHelper work in cases where PersistenceHelper threw an exception.

17-Peridot
January 15, 2018

Thanks for your tipp, unfortunately that doesn't work also.

BjoernRueegg17-PeridotAuthorAnswer
17-Peridot
February 14, 2018

Unfortunately it looks like that there is no possibility to create a new View Version without having set a revise transition. 

A PTC support case didn't help me either.