I have a scenario where I need to traverse to to the Upstream eBOM part using following API -> wt.fc.PersistenceHelper.manager.navigate(mfg_Part,
wt.associativity.EquivalenceLink.UPSTREAM_ROLE, wt.associativity.EquivalenceLink.class);
Above API returns QueryResult for all iterations of upstream WTPart which had equivalent link between them and mBOM part.
However if the user iterates eBOM part but does not update equivalent link manually, I would still need to be able to traverse to previously linked upstream part
Need assistance with finding link to previous Non -Latest eBOM wtPart to fetch further associated documents from it
QueryResult upstreamResult = wt.fc.PersistenceHelper.manager.navigate(parentPart,
wt.associativity.EquivalenceLink.UPSTREAM_ROLE, wt.associativity.EquivalenceLink.class);
LOGGER.debug(">>>>> upstreamResult : " + upstreamResult.size());
while (upstreamResult.hasMoreElements()) {
Object partObj = (WTPart) upstreamResult.nextElement();
upstreamPart = (WTPart) partObj;
LOGGER.debug(">>>>> Upstream Part Iteration :" + upstreamPart.getIdentity()
+ upstreamPart.getIterationDisplayIdentifier());
boolean isLatestUpstreamPart = VersionControlHelper.isLatestIteration(upstreamPart);
LOGGER.debug(">>>>> Is Latest Upstream Part? : " + isLatestUpstreamPart);
if (isLatestUpstreamPart) {
flag = true;
LOGGER.debug(">>> Inside Is LatestUpstreamPart True : " + flag);
descByResult = PersistenceHelper.manager.navigate(upstreamPart,
EPMDescribeLink.DESCRIBED_BY_ROLE, epmDescribeCriteria, true);
}
IF NOT LATEST -> Need to fetch previous linked object with Equivalence link
}
Thanks in advance!