Refactor transaction processing

This commit is contained in:
jamesagnew 2021-06-13 19:42:26 -04:00
parent a3fd23e70a
commit 3ee05b5a62
1 changed files with 7 additions and 3 deletions

View File

@ -680,9 +680,13 @@ public abstract class BaseTransactionProcessor {
nextResourceId = res.getIdElement();
if (!nextResourceId.hasIdPart()) {
if (isNotBlank(myVersionAdapter.getFullUrl(nextReqEntry))) {
nextResourceId = newIdType(myVersionAdapter.getFullUrl(nextReqEntry));
String fullUrl = myVersionAdapter.getFullUrl(nextReqEntry);
if (isNotBlank(fullUrl)) {
IIdType fullUrlIdType = newIdType(fullUrl);
if (isPlaceholder(fullUrlIdType)) {
nextResourceId = fullUrlIdType;
} else if (!nextResourceId.hasIdPart()) {
nextResourceId = fullUrlIdType;
}
}