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

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

SOLVED
Level 11

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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

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 5

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

Hi @brueegg,

 

Can you give it a try:

 

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

Regards,

Shirish

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

My mistake. It is the same API. Smiley Sad

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

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.

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

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

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

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.