Skip to main content
1-Visitor
August 7, 2013
Solved

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

  • August 7, 2013
  • 2 replies
  • 1112 views

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

Best answer by ptc-1047216

Thank you very much Yogeshi!!

2 replies

1-Visitor
August 7, 2013

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-10472161-VisitorAuthorAnswer
1-Visitor
August 7, 2013

Thank you very much Yogeshi!!