Buildrule execution validation via API
I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.2.14
Is there a way to check if the buildrules have been executed on a given WTPart and its linked EPMDocuments?
I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.2.14
Is there a way to check if the buildrules have been executed on a given WTPart and its linked EPMDocuments?
Problem solved with this solution:
Map<Persistable, Persistable> paramMap = new HashMap<Persistable, Persistable>();
paramMap.put(part, pers);
EPMBuildHistoryStatusHelper buildHelper = new EPMBuildHistoryStatusHelper();
Map<Persistable, EPMBuildHistoryStatus> resultBuildStatus = buildHelper.getBuildHistoryStatus(paramMap);
for (Persistable partKey : resultBuildStatus.keySet()) {
EPMBuildHistoryStatus buildStatus = resultBuildStatus.get(partKey); // possible values IN_SYNC, OUT_OF_SYNC, NOT_RELATED, NOT_BUILT;
logger.debug("buildStatus on "+part.getIdentity() +" and "+pers+" is: "+buildStatus.name());
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.