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

Checked out objects in workflow but shown in popup?

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.

Tags (2)
1 REPLY 1
Highlighted

Re: Checked out objects in workflow but shown in popup?

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

}

Announcements
LiveWorx Call For Papers Happening Now!