Skip to main content
17-Peridot
Jan 15, 2018 2:58 PM UTC
Solved

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

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.

17-Peridot
Feb 14, 2018 6:49 AM UTC

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.

5 replies

ShirishMorkhade
16-Pearl
Jan 15, 2018 3:29 PM UTC

Hi @BjoernRueegg,

 

Can you give it a try:

 

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

Regards,

Shirish

Translate
ShirishMorkhade
16-Pearl
Jan 15, 2018 3:32 PM UTC

My mistake. It is the same API. Smiley Sad

Translate
20-Turquoise
Jan 15, 2018 3:42 PM UTC

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.

Translate
17-Peridot
Jan 15, 2018 9:22 PM UTC

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

Translate
BjoernRueegg17-PeridotAuthorAnswer
17-Peridot
Feb 14, 2018 6:49 AM UTC

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.

Translate