Executes an asynchronous geoprocessing tool.
SubmitJob(string ToolName, GPValue[] Values, GPResultOptions Options, PropertySet EnvironmentValues)
Parameter |
Description |
ToolName |
The name of a server tool in a geoprocessing service. |
Values |
An array of GPValue instances, one for each input to the tool. |
Options |
Defines how the result values are returned. Can be null. If specified, results are modified using these options during tool execution. |
EnvironmentValues |
Name value pairs which can be used to modify tool execution. Can be null. Environment values can be general or specific to the operations within the tool. |
Return Value
A string defining the job id.
Remarks
The arguments for this method are the same as Execute. A job id is returned as soon as the job is submitted. A client can use GetJobStatus to check the status of the job and GetJobResult to get the job results.
Use GetToolInfo to determine the input values for the tool. Each tool parameter has a direction indicating input or output.
Result Options are used to indicate various options for returning result values. If the options is null, the default options are used. Result Options reference a number of properties, including "DensifyFeatures", "TransportType", "SpatialReference", Format, and "FormatProperties". See GPResultOptions for details.
Environment values can be general or specific to the operations (tools) within the server tool. General environment values apply to all operations. Specific environment values only affect specific operations. By default, the server tool does not provide information on the operations it contains, only the input and output types. The service publisher must provide information on the operations within the tool for consumers to know which environment values are valid. See the Environment Settings topic in the ArcGIS Desktop help for geoprocessing tools (tools within a server tool).
Examples