Thanks for the quick response.
Your answer does work, but unfortunately not for brand new EPMDocuments. After implementing the code and running it I get the following error:
wt.workflow.engine.FailedExpressionException: wt.util.WTException: (wt.vc.wip.wipResource/36) wt.vc.wip.WorkInProgressException:
WARNING: The element notebook - Layout, A.1 must be checked out in order to be checked in.
What should I do?
Thanks,
Willi