Select to view content in your preferred language

ArcGIS Geoprocessing Service results updates as porgress

3047
3
Jump to solution
07-31-2013 01:23 AM
MohammadIshfaq
Occasional Contributor
Greetings all,
I am trying to run a long (processing multiple objects in a batch mode) and heavy processing (raster manipulation) operation through ArcGIS Geoprocessing Service. It is working fine in execute synchronous or asynchronous operation, however, I would like to get the status update messages while geoprocessor is executing and show them as progress using ArcGIS silverlight or ArcGIS flex client.

I would appreciate if anyone can provide a clue, any literature or POC in this regard. In advance, I thank you all for your time and support.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Mohammad,

   I don't have a full example but if you look at the documentation then you will see that you can add an event listener for STATUS_UPDATE and get the JobInfo

Docs:
https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/events/GeoprocessorEvent.html

geoprocessTask.addEventListener(GeoprocessorEvent.STATUS_UPDATE, statusUpdateHandler);

And get the JobInfo from that event to get the
jobStatus and messages

Docs:
https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/tasks/supportClasses/JobInfo.html

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:


View solution in original post

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
Mohammad,

   I don't have a full example but if you look at the documentation then you will see that you can add an event listener for STATUS_UPDATE and get the JobInfo

Docs:
https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/events/GeoprocessorEvent.html

geoprocessTask.addEventListener(GeoprocessorEvent.STATUS_UPDATE, statusUpdateHandler);

And get the JobInfo from that event to get the
jobStatus and messages

Docs:
https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/tasks/supportClasses/JobInfo.html

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:


0 Kudos
MohammadIshfaq
Occasional Contributor
Thanks Robert for your prompt help. I would give it a shot and let you know regarding the output and accordingly mark it as an answer if it serve the purpose :).

Regards.
0 Kudos
MohammadIshfaq
Occasional Contributor
I was able to test both of these objects with Silverlight and it worked like a charm. Thanks Robert once again for your kind help. It indeed helped regarding what I was looking for.

Thanks Robert for your prompt help. I would give it a shot and let you know regarding the output and accordingly mark it as an answer if it serve the purpose :).

Regards.
0 Kudos