nqazi

difference between esri geoprocessor and  <esri:QueryTask

Discussion created by nqazi on Feb 14, 2013
I am trying to execute the a geo processing task from flex api. i have seen examples provided by the user. one of the examples
given on the link http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Query_using_GP_result/01nq0000003t000000/
has  used both

<esri:Geoprocessor id="gp"
                           concurrency="last"
                           executeComplete="onGPExecuteComplete(event)"
                           outSpatialReference="{myMap.spatialReference}"
                           showBusyCursor="true"
                           url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Network/ESRI_DriveTime_US/GPServer/CreateDriveTimePolygons"
                           useAMF="false"/>

        <esri:QueryTask id="queryTask"
                        concurrency="last"
                        executeComplete="onQueryExecuteComplete(event)"
                        showBusyCursor="true"
                        url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/0"
                        useAMF="false"/>

my question what 's difference between these two and if make a model builder and publish it as service than which one of the above should be used esri geoprocessor tag or esri querytask.
regards
nadeem

Outcomes