Geoprocessing task execution and results

When you open a Geoprocessing task, you see a dialog box that allows specification of the model parameters. For example, if the underlying model requires a line feature class as input, the dialog box will include tools for drawing lines. Once you've specified all the parameters, you can then invoke the model by clicking a button on the task. As the job runs, you can see any messages from the task on the Results panel. When the task has completed, the results will appear on the map.

LegacyLegacy:

If you are using ArcGIS Server 9.2 geoprocessing services, the results will only appear if one of the following conditions is met:

  • The output record set has the same spatial reference as the map.
  • The task has at least one feature input parameter, and the Environment Setting for Output Coordinate System is set to Same as Input on the published toolbox.

Geoprocessing services have a property that determines whether they run synchronously or asynchronously. Use synchronous services to run short jobs for which the user expects to view the results right away. Use asynchronous services for longer tasks, especially those that might exceed the default Connection Timeout of two minutes in IIS.

If the service is configured to run asynchronously, you have the option to view the task results even after you exit the web application. If the task has not finished executing before you close the browser, and if you have cookies enabled, the results will be retrieved automatically the next time you visit the web application. If you don't have cookies enabled, you can click the Save link on the results node to save the result information to a file. You can use this file to check task results in a later session.

The Save link is only available if the Geoprocessing task has a virtual directory denoted (see Step 4 above). This virtual directory must have Read and Write access as well as Scripts only execute permissions enabled. If the service is configured to run synchronously, no Save link appears, and you must keep the session alive to view the results when they become available.

The results of a Geoprocessing task can be drawn either on the server or by the application. If the result is drawn by the application, you will be able to zoom and pan to the results and see the results listed as individual features. By default, the results will be drawn by the application unless the geoprocessing service that you used to configure the task has an associated map service, in which case the results will be drawn on the server. You can change this behavior in Visual Studio by setting the task's DrawResultsOnMapServer property to False.

10/19/2012