Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: Prevent Complete Task if WTdoc is checked out?

$
0
0

Try with this:

 

if(primaryBusinessObject instanceof wt.doc.WTDocument) {  wt.doc.WTDocument doc = (wt.doc.WTDocument) primaryBusinessObject;  if(wt.vc.wipWorkInProgressHelper.isCheckedOut(doc))       throw new wt.workflow.WfException("Document " + wt.identity.IdentityFactory.getDisplayIdentifier(primaryBusinessObject) + " in c/o state");
}

Viewing all articles
Browse latest Browse all 8876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>