Performs a geoprocessing operation on an asynchronous geoprocessing service.
This operation will pass JobInfo objects to the function specified in the onStatusCallback argument while the job is executing,
and a GPResults to the function specified in onCompleteCallback upon completion.
Namespace:
ESRI.ArcGIS.VE(in ArcGISVE.exe)
Syntax
| JScript |
|---|
function SubmitJob( parameters : array<ParameterValue>[]()[], onCompleteCallback : Function, onStatusCallback : Function ) |
Parameters
- parameters
- Type: array<ParameterValue>[]()[]
Array of ParameterValue - input parameters for the task. Must contain the inputs required by the geoprocessing service.
- onCompleteCallback
- Type: Function
The JavaScript function that will handle the GetResultData response. Must be a function that takes one argument, the ParameterValue result.
- onStatusCallback
- Type: Function
The JavaScript function that will handle the getStatus response. Optional. This function must take one argument, which will be a JobInfo object.
Remarks
Asynchronous geoprocessing jobs work by submitting a job to the server. The client then checks the
status of the job periodically. When the job is completed, the results may be displayed on the client.
When SubmitJob is called, the status checking and result retrieval is automatically handled. The developer
only needs to specify the functions that will receive the status updates and the completed result.
The JavaScript function that handles the getStatus response must take one argument, which will be a JobInfo object. The JobInfo object will contain information about the status of the operation, including JobId, Status and Messages. This information may be displayed to the user to indicate progress on the geoprocessing job. Status updates are requested based on the interval specified in the UpdateInterval property.
The JavaScript function that handles the getStatus response must take one argument, which will be a JobInfo object. The JobInfo object will contain information about the status of the operation, including JobId, Status and Messages. This information may be displayed to the user to indicate progress on the geoprocessing job. Status updates are requested based on the interval specified in the UpdateInterval property.
