Gunnar Rangøy created CAMEL-19100:
-------------------------------------

             Summary: Milo component does not use dataChangeFilterTrigger value 
from route
                 Key: CAMEL-19100
                 URL: https://issues.apache.org/jira/browse/CAMEL-19100
             Project: Camel
          Issue Type: Bug
          Components: camel-milo
    Affects Versions: 3.20.2, 3.x
            Reporter: Gunnar Rangøy
             Fix For: 3.20.3
         Attachments: filter.patch

The dataChangeFilterTrigger configured is not applied when the monitoring is 
set up.

 
 
{code:java}
return new DataChangeFilter(
   DataChangeTrigger.StatusValueTimestamp,
   this.getDataChangeFilterDeadbandType(),
   this.getDataChangeFilterDeadbandValue());
}{code}

I think the code above has to be changed to something like this:


  
{code:java}
return new DataChangeFilter(
this.dataChangeFilterTrigger != null ? this.dataChangeFilterTrigger : 
DataChangeTrigger.StatusValueTimestamp,
this.getDataChangeFilterDeadbandType(),
this.getDataChangeFilterDeadbandValue());
}{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to