Continuing work described in this previous thread, I would like to figure out how to make asynchronous calls to FME Server and poll the job until it's completed, then capture the response. That will allow me to communicate to user in the UI what's going in while job is running, rather than just be waiting for something go happen.
So far, I've switched from
FMEServer.runWorkspaceWithData( repository, workspace, params, callback);
to
FMEServer.submitJob( repository, workspace, params, callback);
which returns the job ID. There are so many ways in Javascript to now poll the service to check if the job is complete... I was hoping someone has a concise snippet to share?! Maybe there is even a feature in the API or an FME example I've overlooked .