AnsweredAssumed Answered

Poll External Website for JSON with variables

Question asked by gpsgate on Apr 29, 2015
Latest reply on Apr 30, 2015 by rsunderman-esristaff

Is it possible to reuse the result of one poll in the following polls? I would like the use the "Poll an External Website for JSON" Input connector with some variables that can be set/reset on a successful poll.

 

An example would be a LAST_POLLED variable, where in an initial poll we receive a timestamp which can be used in the next poll request? Does the GeoEvent processor support variables, and if yes how do we initiate them, use them in the Poll function such as in the URI or in the header parameters?

 

Request 1:

LAST_POLLED is null/undefined

 

myurl/method?param1=1&param2=2&last_poll=[LAST_POLLED] which would result in something like this:

 

myurl/method?param1=1&param2=2&last_poll

 

Request 1 comes back with a result including a timestamp, We set LAST_POLL=timestamp1

 

Request 2

Now LAST_POLL is initiated to timestamp1

 

myurl/method?param1=1&param2=2&last_poll=[LAST_POLLED] which would result in something like this:

 

myurl/method?param1=1&param2=2&last_poll=timestamp1

 

Is this possible? How would we achieve this?

Outcomes