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.
Solved! Go to Solution.
Can you give it a try:
You might try PersistenceServerHelper instead of PersistenceHelper to persist the new part view version:
I have seen PersistenceServerHelper work in cases where PersistenceHelper threw an exception.