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

Re: Prevent Complete Task if an object is checked out?

$
0
0

Please remove catch on WTException and throw as new WTException. It should work

 

wt.change2.WTChangeActivity2 ca = (wt.change2.WTChangeActivity2)primaryBusinessObject;

 

        wt.fc.QueryResult objQueryResult = wt.change2.ChangeHelper2.service.getChangeablesAfter(ca);

        while(objQueryResult.hasMoreElements()){

                wt.enterprise.RevisionControlled obj = (wt.enterprise.RevisionControlled) objQueryResult.nextElement();

                if(wt.vc.wip.WorkInProgressHelper.isCheckedOut(obj)){

                        result=false;

                        throw new wt.util.WTException("Please make sure all resulting objects are checked in before completing task");

                }

        }


Viewing all articles
Browse latest Browse all 8876

Trending Articles



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