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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Translate the entire conversation x

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

ptc-1047216
12-Amethyst

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

ACCEPTED SOLUTION

Accepted Solutions
ptc-1047216
12-Amethyst
(To:ybagul)

Thank you very much Yogeshi!!

View solution in original post

2 REPLIES 2
ybagul
12-Amethyst
(To:ptc-1047216)

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

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

} else{

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

}

ptc-1047216
12-Amethyst
(To:ybagul)

Thank you very much Yogeshi!!

Announcements
Top Tags