Hello,
I'm looking for a way to determine who has checked out an object in Windchill.
I tried it a little bit with this piece of code:
w = CheckInOutTaskLogic.getWorkingCopy(w);
if (CheckInOutTaskLogic.isCheckedOut(w)) {
if (CheckInOutTaskLogic.isCheckedOutByOther(w))
checkedOutBy = CheckInOutTaskLogic.getCheckedOutBy(w);
else
checkedOutBy = SessionHelper.getPrincipal();
}
}
"w" is a Workable and WorkInProgressHelper.isCheckedOut(w) returns true.
But CheckInOutTaskLogic.getCheckedOutBy(w) returns always null.
Is something wrong with this approach?
Thanks in advance
Regards
Philipp Nierkamp