loops - Polling a restful service in Talend -


i building job in talend queries restful service. in job, initiate job , job id back. query status service, , need wait job complete. how go doing in talend? have been playing around tloop, tflowtoiterate, titeratetoflow , tjavarow components try work, not sure how configure it.

here's summary of i'm trying do:

1. trest: start job , job id     |     --> 2. trest: poll status of job        |         --> 3. tunknown?: if job running, sleep , re-run step 2.                |                 --> 4. trest: when job complete, retrieve results 

how set step 3 above?

basically want like

tinfiniteloop --iterate--> (subjob querying service , determining if result ready) --if (result ready)--> (subjob fetching result) --on subjob ok--> tjava "counter_tinfiniteloop_1 = -1;" leave loop (don't know of better alternative)

i advice implementing timeout or maximum number of lookups , maybe automatically increasing sleep time.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -