Skip to content

Commit

Permalink
adding checking of condition during adding of trigger for existence (…
Browse files Browse the repository at this point in the history
…MID-6040)
  • Loading branch information
skublik committed Mar 16, 2020
1 parent a59d71a commit 8ff2534
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -488,7 +488,7 @@ public <V extends PrismValue, D extends ItemDefinition, T extends ObjectType, F
for (MappingImpl<V,D> mapping: mappings) {
XMLGregorianCalendar mappingNextRecomputeTime = mapping.getNextRecomputeTime();
if (mappingNextRecomputeTime != null) {
if (nextRecomputeTime == null || nextRecomputeTime.compare(mappingNextRecomputeTime) == DatatypeConstants.GREATER) {
if (mapping.isSatisfyCondition() && (nextRecomputeTime == null || nextRecomputeTime.compare(mappingNextRecomputeTime) == DatatypeConstants.GREATER)) {
nextRecomputeTime = mappingNextRecomputeTime;
// TODO: maybe better description? But consider storage requirements. We do not want to store too much.
triggerOriginDescription = mapping.getIdentifier();
Expand Down

0 comments on commit 8ff2534

Please sign in to comment.