- CPS-1085Getting issue details... STATUS
Proposed solution
pseudo code solution
anchorNamesFilter = null if (hasModuleCondition) anchorNamesFilter[] = ... // execute current query to get just cm handle names! endif if (hasPropertyConditons) cmHandleObjects[] = ... //execute current code to get cm handle objects based on property conditions if (anchorNamesFilter != null) cmHandleObjects.removeAll(cmHandlObject.id not in anchorNameFilter) endif return cmHandleObjects[] endif if (justIds) return convertAnchorNamesToEMptyCmHandleObject(anchorNamesFilter[]) /similar to code you have in your latest patch else cmHandleObjects[] = new collection for each anchorName in anchorNameFilter[] { cmHandleObject = get /dmi-registry/cm-handle[@id=anchorName] // use GET with absolute path NOT a query!!!! cmHandleObjects[].add(cmHandleObject) } return cmHandleObjects[] endif