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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Checked out objects in workflow but shown in popup?

BrianToussaint
19-Tanzanite

Checked out objects in workflow but shown in popup?

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.

1 REPLY 1

Brian Toussaint‌,

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)));

}

Top Tags