Compound with front-end, fix of incorrect getter use
This commit is contained in:
		
							parent
							
								
									77de9da2a8
								
							
						
					
					
						commit
						e93c975a01
					
				@ -30,7 +30,7 @@ public class DynamicValue<T> {
 | 
			
		||||
    public DynamicValue(DynamicValueSourceType sourceType, String sourceAttribute) {
 | 
			
		||||
        this.sourceAttribute = sourceAttribute;
 | 
			
		||||
        this.sourceType = sourceType;
 | 
			
		||||
        this.inheritMode = false;
 | 
			
		||||
        this.inherit = false;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Getter
 | 
			
		||||
@ -38,6 +38,6 @@ public class DynamicValue<T> {
 | 
			
		||||
    @Getter
 | 
			
		||||
    private final String sourceAttribute;
 | 
			
		||||
    @Getter
 | 
			
		||||
    private final boolean inheritMode;
 | 
			
		||||
    private final boolean inherit;
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -393,7 +393,7 @@ class AlarmRuleState {
 | 
			
		||||
                    break;
 | 
			
		||||
                case CURRENT_CUSTOMER:
 | 
			
		||||
                    ekv = dynamicPredicateValueCtx.getCustomerValue(value.getDynamicValue().getSourceAttribute());
 | 
			
		||||
                    if(ekv == null && value.getDynamicValue().getInheritMode()) {
 | 
			
		||||
                    if(ekv == null && value.getDynamicValue().isInherit()) {
 | 
			
		||||
                        ekv = dynamicPredicateValueCtx.getTenantValue(value.getDynamicValue().getSourceAttribute());
 | 
			
		||||
                    }
 | 
			
		||||
                    break;
 | 
			
		||||
@ -408,7 +408,7 @@ class AlarmRuleState {
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                    if(ekv == null && value.getDynamicValue().getInheritMode()) {
 | 
			
		||||
                    if(ekv == null && value.getDynamicValue().isInherit()) {
 | 
			
		||||
                        ekv = dynamicPredicateValueCtx.getCustomerValue(value.getDynamicValue().getSourceAttribute());
 | 
			
		||||
                        if(ekv == null) {
 | 
			
		||||
                            ekv = dynamicPredicateValueCtx.getTenantValue(value.getDynamicValue().getSourceAttribute());
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user