= alltranrefsPath.selectNodes(activity).iterator();
while(transRefIterator.hasNext()) {
Element transRefElem = (Element)transRefIterator.next();
String transRefId = transRefElem.getAttributeValue("Id");
if (!transitionIds.contains(transRefId)) {
eh.add (new PrioritizedMessage
(PrioritizedMessage.Priority.ERROR,
bundleBase + "#procdef.transitionid.notfound",
new Object[] {transRefId, processId}));
}
}
validateTranstionRestrictions(process, actSetElem, activity,
isIncludedInActivitySet, eh);
validateImplementation(doc, process, activity, eh);
//validate if the referenced participant defined and unique.
validatePerformer(processId, activity, participantIdList, eh);
}
String duplicate = findDuplicate(activityIds);
if (duplicate != null) {
String errorKey = null;
String activitySetId = null;
if (isIncludedInActivitySet) {
errorKey = "procdef.activityset.activity.ununique";
activitySetId = actSetElem.getAttributeValue("Id");
} else {
errorKey = "procdef.activity.ununique";
}
String[] errdatas = {duplicate, processId, activitySetId};
eh.add (new PrioritizedMessage
(PrioritizedMessage.Priority.ERROR,
bundleBase + "#" + errorKey, errdatas));
}
}