AnsweredAssumed Answered

HowTo only update feature if Date is after existing date

Question asked by mtrompesri-nl-esridist Employee on Dec 21, 2016
Latest reply on Jan 4, 2017 by mtrompesri-nl-esridist

I have an input connector looking at new XML-files in a shared folder. Everything works fine if the order in which the new XML files arrive in the folder is correct.

The XML file contains the parameters ID (INT), value (String) and ChangeDate (Date). In the output connector I update features in a featureservice. Depending on connectivity of the fieldworkers the latest XML-file does not necessarily have the latest Value of the asset.

Is there a way to make sure the Value field is only updated when the ChangeDate of the incoming event is after the existing ChangeDate of the existing feature? 

 

I tried using the tags TIME_START and TIME_END on the ChangedDate Filed in the geoeventdefinitions of input- and output-connectors, but that did not force the required behavior.

 

A solution might be to join the incoming event with existing features and compare the Date in the event with the existing date. Any suggestions?

 

Thank for your help!

 

Regards, Maarten Tromp

Outcomes