mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-08 22:14:50 +00:00
modify BaseHapiTerminologySvcImpl saveDeferred method to avoid short circuit that could potentially prevent processing of some deferred value sets and concept maps
This commit is contained in:
parent
60ed0dab48
commit
b2853b3f9d
@ -850,15 +850,16 @@ public abstract class BaseHapiTerminologySvcImpl implements IHapiTerminologySvc,
|
|||||||
return;
|
return;
|
||||||
} else if (myDeferredConcepts.isEmpty() && myConceptLinksToSaveLater.isEmpty()) {
|
} else if (myDeferredConcepts.isEmpty() && myConceptLinksToSaveLater.isEmpty()) {
|
||||||
processReindexing();
|
processReindexing();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TransactionTemplate tt = new TransactionTemplate(myTransactionMgr);
|
TransactionTemplate tt = new TransactionTemplate(myTransactionMgr);
|
||||||
tt.setPropagationBehavior(TransactionTemplate.PROPAGATION_REQUIRES_NEW);
|
tt.setPropagationBehavior(TransactionTemplate.PROPAGATION_REQUIRES_NEW);
|
||||||
tt.execute(t -> {
|
if(!myDeferredConcepts.isEmpty() || !myConceptLinksToSaveLater.isEmpty()) {
|
||||||
processDeferredConcepts();
|
tt.execute(t -> {
|
||||||
return null;
|
processDeferredConcepts();
|
||||||
});
|
return null;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (myDeferredValueSets.size() > 0) {
|
if (myDeferredValueSets.size() > 0) {
|
||||||
tt.execute(t -> {
|
tt.execute(t -> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user