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

We are happy to announce the new Windchill Customization board! Learn more.

How can I test for a checked out wt.document in a workflow?

ptc-1047216
1-Newbie

How can I test for a checked out wt.document in a workflow?

Is there any simple method I can use in a workflow to test the checked in/checked out state of my pbo(wt.Document) so I can route accordingly?

(I've got a feeling it'll require reams of java!!!)

Many thanks,

B

1 ACCEPTED SOLUTION

Accepted Solutions

Thank you very much Yogeshi!!

View solution in original post

2 REPLIES 2

if(wt.vc.wip.WorkInProgressHelper.isCheckedOut((wt.vc.wip.Workable)primaryBusinessObject)){

System.out.println("primaryBusinessObject checked out");

} else{

System.out.println("primaryBusinessObject checked in");

}

Thank you very much Yogeshi!!

Top Tags