Package | com.esri.drs |
Class | public class BatchValidationTask |
Inheritance | BatchValidationTask ![]() ![]() |
Batch Validation operates in two execution modes: adhoc (immediate); scheduled.
Adhoc jobs execute immediately and run once. Scheduled jobs run repeatedly according
to a schedule and terminate once BatchValidationParameters.maxNumberOfExecutions
has been exceeded or BatchValidationParameters.executionEndDate
has passed.
See also
Property | Defined By | ||
---|---|---|---|
![]() | createReviewerSessionLastResult : ReviewerSession
ReviewerSession returned from last call to the createReviewerSession function. | DRSBaseTask | |
executeJobLastResult : String
Adhoc job ID returned from the last call to the executeJob function. | BatchValidationTask | ||
getAdhocJobsListLastResult : Array
Array of adhoc BatchValidationJobDetails instances return from the last call to the getAdhocJobsList function. | BatchValidationTask | ||
getJobDetailsLastResult : BatchValidationJobDetails
BatchValidationJobDetails instance returned from the last call to the getJobDetails function. | BatchValidationTask | ||
getJobExecutionDetailsLastResult : BatchValidationJobExecutionDetails
BatchValidationJobExecutionDetails instance returned from the last call to the getJobExecutionDetails function. | BatchValidationTask | ||
getJobIdsLastResult : Object
Object returned from the last call to the getJobIds function. | BatchValidationTask | ||
![]() | getLifecycleStatusStringsLastResult : Array
Array of lifecycle status strings returned from last call to the getLifecycleStatusStrings function. | DRSBaseTask | |
![]() | getReviewerSessionsLastResult : Array
Array of ReviewerSession object returned from last call to the getReviewerSessions function. | DRSBaseTask | |
getScheduledJobsListLastResult : Array
Array of scheduled BatchValidationJobDetails instances return from the last call to the getScheduledJobsList function. | BatchValidationTask | ||
scheduleJobLastResult : String
Scheduled job ID returned from the last call to the scheduleJob function. | BatchValidationTask |
Method | Defined By | ||
---|---|---|---|
BatchValidationTask(url:String = null)
Constructor
| BatchValidationTask | ||
cancelJobExecution(jobId:String, responder:IResponder = null):AsyncToken
Cancels a job that is currently executing. | BatchValidationTask | ||
![]() | createReviewerSession(sessionName:String, sessionProperties:SessionProperties, responder:IResponder = null):AsyncToken
Creates a new Reviewer Session. | DRSBaseTask | |
deleteJob(jobId:String, responder:IResponder = null):AsyncToken
Deletes an existing scheduled Batch Validation Job. | BatchValidationTask | ||
disableJob(jobId:String, responder:IResponder = null):AsyncToken
Pauses an existing Batch Validation Job's schedule. | BatchValidationTask | ||
editJob(jobId:String, parameters:BatchValidationParameters, responder:IResponder = null):AsyncToken
Edits the schedule, settings and title of an existing Batch Validation Job. | BatchValidationTask | ||
enableJob(jobId:String, responder:IResponder = null):AsyncToken
Restarts an existing Batch Validation Job's schedule. | BatchValidationTask | ||
executeJob(parameters:BatchValidationParameters, responder:IResponder = null):AsyncToken
Executes an adhoc job. | BatchValidationTask | ||
getAdhocJobsList(responder:IResponder = null):AsyncToken
Retrieves all adhoc jobs from the server and returns an array of
BatchValidationJobDetails with the information. | BatchValidationTask | ||
getJobDetails(jobId:String, responder:IResponder = null):AsyncToken
Fetches Batch Validation Job details. | BatchValidationTask | ||
getJobExecutionDetails(jobId:String, responder:IResponder = null):AsyncToken
Fetches the job execution details of a Batch Validation Job. | BatchValidationTask | ||
getJobIds(responder:IResponder = null):AsyncToken
Returns an object that contains Scheduled and AdhocJob IDs in two separate arrays. | BatchValidationTask | ||
![]() | getLifecycleStatusStrings(responder:IResponder = null):AsyncToken
Retrieves a list of localized lifecycle status strings from the reviewer workspace. | DRSBaseTask | |
![]() | getReviewerSessions(responder:IResponder = null):AsyncToken
Returns an array of sessions in a Reviewer workspace. | DRSBaseTask | |
getScheduledJobsList(responder:IResponder = null):AsyncToken
Retrieves all scheduled jobs from the server and returns an array of
BatchValidationJobDetails with the information. | BatchValidationTask | ||
scheduleJob(parameters:BatchValidationParameters, responder:IResponder = null):AsyncToken
Schedules a new Batch Validation. | BatchValidationTask |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when cancelJobExecution operation successfully completes. | BatchValidationTask | |||
![]() | Dispatched when createReviewerSession operation successfully completes. | DRSBaseTask | ||
Dispatched when deleteJob operation completes. | BatchValidationTask | |||
Dispatched when disableJob operation successfully completes. | BatchValidationTask | |||
Dispatched when editJob operation completes. | BatchValidationTask | |||
Dispatched when enableJob operation completes. | BatchValidationTask | |||
Dispatched when executeJob operation successfully completes. | BatchValidationTask | |||
Dispatched when there is a problem accessing the Reviewer Map Server. | BatchValidationTask | |||
Dispatched when getAdhocJobsList operation successfully completes. | BatchValidationTask | |||
Dispatched when getJobDetails operation successfully completes. | BatchValidationTask | |||
Dispatched when getJobExecutionDetails operation successfully completes. | BatchValidationTask | |||
Dispatched when getJobIds operation successfully completes. | BatchValidationTask | |||
![]() | Dispatched when getLifecycleStatusStrings operation successfully completes. | DRSBaseTask | ||
![]() | Dispatched when getReviewerSessions operation successfully completes. | DRSBaseTask | ||
Dispatched when getScheduledJobsList operation successfully completes. | BatchValidationTask | |||
Dispatched when scheduleJob operation successfully completes. | BatchValidationTask |
executeJobLastResult | property |
executeJobLastResult:String
Adhoc job ID returned from the last call to the executeJob function.
This property can be used as the source for data binding.
public function get executeJobLastResult():String
public function set executeJobLastResult(value:String):void
See also
getAdhocJobsListLastResult | property |
getAdhocJobsListLastResult:Array
Array of adhoc BatchValidationJobDetails instances return from the last call to the getAdhocJobsList function.
This property can be used as the source for data binding.
public function get getAdhocJobsListLastResult():Array
public function set getAdhocJobsListLastResult(value:Array):void
See also
getJobDetailsLastResult | property |
getJobDetailsLastResult:BatchValidationJobDetails
BatchValidationJobDetails instance returned from the last call to the getJobDetails function.
This property can be used as the source for data binding.
public function get getJobDetailsLastResult():BatchValidationJobDetails
public function set getJobDetailsLastResult(value:BatchValidationJobDetails):void
See also
getJobExecutionDetailsLastResult | property |
getJobExecutionDetailsLastResult:BatchValidationJobExecutionDetails
BatchValidationJobExecutionDetails instance returned from the last call to the getJobExecutionDetails function.
This property can be used as the source for data binding.
public function get getJobExecutionDetailsLastResult():BatchValidationJobExecutionDetails
public function set getJobExecutionDetailsLastResult(value:BatchValidationJobExecutionDetails):void
See also
getJobIdsLastResult | property |
getJobIdsLastResult:Object
Object returned from the last call to the getJobIds function.
The object holds two string arrays, adhocJobs
and scheduledJobs
, with the job IDs.
This property can be used as the source for data binding.
public function get getJobIdsLastResult():Object
public function set getJobIdsLastResult(value:Object):void
See also
{ "scheduledJobs": ["ae116971-ade6-41e8-97e9-3bce74524dc9", "35b26ff5-ebc0-436d-8ddd-af9fadd624f1"], "adhocJobs": ["e604cc76-bf5a-4bd0-b497-85bf7f676aed"] }
getScheduledJobsListLastResult | property |
getScheduledJobsListLastResult:Array
Array of scheduled BatchValidationJobDetails instances return from the last call to the getScheduledJobsList function.
This property can be used as the source for data binding.
public function get getScheduledJobsListLastResult():Array
public function set getScheduledJobsListLastResult(value:Array):void
See also
scheduleJobLastResult | property |
scheduleJobLastResult:String
Scheduled job ID returned from the last call to the scheduleJob function.
This property can be used as the source for data binding.
public function get scheduleJobLastResult():String
public function set scheduleJobLastResult(value:String):void
See also
BatchValidationTask | () | Constructor |
public function BatchValidationTask(url:String = null)
Constructor
Parametersurl:String (default = null ) — ArcGIS Data Reviewer for Server Batch Validation REST resource URL
|
var bvUrl:String = "http://localhost:6080/arcgis/rest/services/reviewer/MapServer/exts/DataReviewerServer"; var task:BatchValidationTask = new BatchValidationTask(bvUrl);
cancelJobExecution | () | method |
public function cancelJobExecution(jobId:String, responder:IResponder = null):AsyncToken
Cancels a job that is currently executing. On completion the cancelJobExecutionComplete event is fired and the optional responder is called. Event result holds a boolean that indicates if cancel succeeded or not.
Parameters
jobId:String — Job Id of the batch validation job to cancel.
| |
responder:IResponder (default = null ) — The responder to call on result or fault.
|
AsyncToken |
See also
deleteJob | () | method |
public function deleteJob(jobId:String, responder:IResponder = null):AsyncToken
Deletes an existing scheduled Batch Validation Job. On completion the deleteJobComplete event is fired and the optional responder is called. Event result holds a boolean that indicates if the deleteJob function succeeded or not.
Parameters
jobId:String — Job Id of the batch validation job to delete.
| |
responder:IResponder (default = null ) — The responder to call on result or fault.
|
AsyncToken |
See also
disableJob | () | method |
public function disableJob(jobId:String, responder:IResponder = null):AsyncToken
Pauses an existing Batch Validation Job's schedule. On completion the disableJobComplete event is fired and the optional responder is called. Event result holds a boolean that indicates if the disableJob function succeeded or not.
Parameters
jobId:String — Job Id of the batch validation job to be disabled.
| |
responder:IResponder (default = null ) — The responder to call on result or fault.
|
AsyncToken |
See also
editJob | () | method |
public function editJob(jobId:String, parameters:BatchValidationParameters, responder:IResponder = null):AsyncToken
Edits the schedule, settings and title of an existing Batch Validation Job. On completion the editJobComplete event is fired and the optional responder is called. Event result contains a boolean that indicates if the editJob function succeeded or not.
Parameters
jobId:String — JobID of the job to edit.
| |
parameters:BatchValidationParameters — Parameters to change in an existing batch job.
| |
responder:IResponder (default = null ) — The responder to call on result or fault.
|
AsyncToken |
See also
enableJob | () | method |
public function enableJob(jobId:String, responder:IResponder = null):AsyncToken
Restarts an existing Batch Validation Job's schedule. Use enableJob to restart a previously disabled job. On completion the enableJobComplete event is fired and the optional responder is called. Event result contains a boolean that indicates if the enableJob function succeeded or not.
Parameters
jobId:String — Job Id of the batch validation job to enable.
| |
responder:IResponder (default = null ) — The responder to call on result or fault.
|
AsyncToken |
See also
executeJob | () | method |
public function executeJob(parameters:BatchValidationParameters, responder:IResponder = null):AsyncToken
Executes an adhoc job. Adhoc jobs execute immediately and run once. On completion the executeJobComplete event is fired and the optional responder is called.
Parameters
parameters:BatchValidationParameters — Parameters specifying the details of a job to execute.
| |
responder:IResponder (default = null ) — The responder to call on result or fault.
|
AsyncToken |
See also
getAdhocJobsList | () | method |
public function getAdhocJobsList(responder:IResponder = null):AsyncToken
Retrieves all adhoc jobs from the server and returns an array of BatchValidationJobDetails with the information. On completion the getAdhocJobsListComplete event is fired and the optional responder is called.
Parameters
responder:IResponder (default = null ) — The responder to call on result or fault.
|
AsyncToken |
See also
getJobDetails | () | method |
public function getJobDetails(jobId:String, responder:IResponder = null):AsyncToken
Fetches Batch Validation Job details. On completion the getJobDetailsComplete event is fired and the optional responder is called.
Parameters
jobId:String — Job Id of the batch validation job.
| |
responder:IResponder (default = null ) — The responder to call on result or fault.
|
AsyncToken |
See also
getJobExecutionDetails | () | method |
public function getJobExecutionDetails(jobId:String, responder:IResponder = null):AsyncToken
Fetches the job execution details of a Batch Validation Job. On completion the getJobExecutionDetailsComplete event is fired and the optional responder is called.
Parameters
jobId:String — Job Id of the batch validation job.
| |
responder:IResponder (default = null ) — The responder to call on result or fault.
|
AsyncToken |
See also
getJobIds | () | method |
public function getJobIds(responder:IResponder = null):AsyncToken
Returns an object that contains Scheduled and AdhocJob IDs in two separate arrays. On completion the getJobDetailsComplete event is fired and the optional responder is called.
Parameters
responder:IResponder (default = null ) — The responder to call on result or fault.
|
AsyncToken |
See also
getScheduledJobsList | () | method |
public function getScheduledJobsList(responder:IResponder = null):AsyncToken
Retrieves all scheduled jobs from the server and returns an array of BatchValidationJobDetails with the information. On completion the getScheduledJobsListComplete event is fired and the optional responder is called.
Parameters
responder:IResponder (default = null ) — The responder to call on result or fault.
|
AsyncToken |
See also
scheduleJob | () | method |
public function scheduleJob(parameters:BatchValidationParameters, responder:IResponder = null):AsyncToken
Schedules a new Batch Validation. On completion the scheduleJobComplete event is fired and the optional responder is called.
Parameters
parameters:BatchValidationParameters — Parameters for scheduling a batch validation job.
| |
responder:IResponder (default = null ) — The responder to call on result or fault.
|
AsyncToken |
See also
cancelJobExecutionComplete | Event |
com.esri.drs.DataReviewerTaskEvent
com.esri.drs.DataReviewerTaskEvent.CANCEL_JOB_EXECUTION_COMPLETE
Dispatched when cancelJobExecution operation successfully completes. The event result is a boolean that indicates if the cancel request succeeded.
deleteJobComplete | Event |
com.esri.drs.DataReviewerTaskEvent
com.esri.drs.DataReviewerTaskEvent.DELETE_JOB_COMPLETE
Dispatched when deleteJob operation completes. The event result is a boolean that indicates if the delete request succeeded.
disableJobComplete | Event |
com.esri.drs.DataReviewerTaskEvent
com.esri.drs.DataReviewerTaskEvent.DISABLE_JOB_COMPLETE
Dispatched when disableJob operation successfully completes. The event result is a boolean that indicates if the disable request succeeded.
editJobComplete | Event |
com.esri.drs.DataReviewerTaskEvent
com.esri.drs.DataReviewerTaskEvent.EDIT_JOB_COMPLETE
Dispatched when editJob operation completes. The event result is a boolean that indicates if the edit request succeeded.
enableJobComplete | Event |
com.esri.drs.DataReviewerTaskEvent
com.esri.drs.DataReviewerTaskEvent.ENABLE_JOB_COMPLETE
Dispatched when enableJob operation completes. The event result is a boolean that indicates if the enable request succeeded.
executeJobComplete | Event |
com.esri.drs.DataReviewerTaskEvent
com.esri.drs.DataReviewerTaskEvent.EXECUTE_JOB_COMPLETE
Dispatched when executeJob operation successfully completes. The event result string is the adhoc batch validation job ID.
fault | Event |
mx.rpc.events.FaultEvent
Dispatched when there is a problem accessing the Reviewer Map Server.
getAdhocJobsListComplete | Event |
com.esri.drs.DataReviewerTaskEvent
com.esri.drs.DataReviewerTaskEvent.GET_ADHOC_JOBS_LIST_COMPLETE
Dispatched when getAdhocJobsList operation successfully completes. The event result is an array of BatchValidationJobDetails instances with adhoc jobs details.
getJobDetailsComplete | Event |
com.esri.drs.DataReviewerTaskEvent
com.esri.drs.DataReviewerTaskEvent.GET_JOB_DETAILS_COMPLETE
Dispatched when getJobDetails operation successfully completes. The event result is an instance of BatchValidationJobDetails.
getJobExecutionDetailsComplete | Event |
com.esri.drs.DataReviewerTaskEvent
com.esri.drs.DataReviewerTaskEvent.GET_JOB_EXECUTION_DETAILS_COMPLETE
Dispatched when getJobExecutionDetails operation successfully completes. The event result is an instance of BatchValidationJobExecutionDetails.
getJobIdsComplete | Event |
com.esri.drs.DataReviewerTaskEvent
com.esri.drs.DataReviewerTaskEvent.GET_JOB_IDS_COMPLETE
Dispatched when getJobIds operation successfully completes. The event result object contains two arrays:
getScheduledJobsListComplete | Event |
com.esri.drs.DataReviewerTaskEvent
com.esri.drs.DataReviewerTaskEvent.GET_SCHEDULED_JOBS_LIST_COMPLETE
Dispatched when getScheduledJobsList operation successfully completes. The event result is an array of BatchValidationJobDetails instances with scheduled jobs details.
scheduleJobComplete | Event |
com.esri.drs.DataReviewerTaskEvent
com.esri.drs.DataReviewerTaskEvent.SCHEDULE_JOB_COMPLETE
Dispatched when scheduleJob operation successfully completes. The event result string is the scheduled batch validation job ID.