Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
I have the business rule to check for checked out resulting objects in a couple of my workflows. What I would like is for the objects that are checked out to be listed in the pop-up that tells me that I have checked out objects. This would help the users, but it would also help me as an admin when one of the users gets a false positive. I am on Windchill 10.2 m030.
I'm not using business rules. And I offloaded the actual checking to an external class (such as CheckedOutHelper.java). But maybe this will help?
I am putting the part numbers in a pop-up box when the user tries to complete the workflow task with checked out objects. The code below is in the Complete transition of the workflow task.
String checkedOutItems = ext.CheckedOutHelper.checkedOutResultingItems(cn);
if (checkedOutItems.length() > 0) {
// Throw the Exception
throw new wt.util.WTException(new Throwable(new String(checkedOutItems)));
}