Foundation Technology

Get more value from your data with integrated data cleansing in your systems. Automate data extraction, cleansing and import for greater efficiency.

 

Job Manager

The Job Manager web service provides methods for starting new data cleansing jobs and retrieving the status of existing jobs. The web service definition is available at
https://webservices.data-8.co.uk/batch/v1.0/jobmanager.asmx?WSDL.

In order to submit a job, the data to cleanse must have been uploaded using the Upload Manager web service, the format of the data must have been defined using the File Format Store web service, and the data cleansing services to perform must have been defined using the Workflow Store web service.

Each job must be assigned a unique name to identify it. Details of the progress and results of the job can be retrieved using this unique name. Note that job names cannot contain any of the following characters: \ / : ? " * < > |

  • SubmitJob
    Starts a new data cleansing job.
  • GetJobs
    Gets a list of previously submitted data cleansing jobs.
  • GetJobDetails
    Gets details of the progress and status of a data cleansing job.

The following code sample illustrates how to submit an uploaded file for cleansing and wait for it to finish.

            /// <summary>
            /// Submits a file to Data8 for cleansing.
            /// </summary>
            /// <param name="uploadId">The identifier of the uploaded file returned from the Upload Manager.</param>
            /// <returns>The name of the completed data cleansing job.</returns>
            private string CleanseData(int uploadId)
            {
                // Create a unique name for the job.
                string name = String.Format("Data Cleansing Job {0:yyyyMMdd}.{1:N}", DateTime.Now, new Guid());
                
                // Start the data cleansing job.
                JobManager proxy = new JobManager();
                proxy.SubmitJob(Username, Password, name, FILE_FORMAT_NAME, WORKFLOW_NAME, uploadId);
                
                // Wait for the process to finish.
                while (true)
                {
                    Thread.Sleep(TimeSpan.FromSeconds(10));
                    
                    JobStatus status = proxy.GetJobDetails(Username, Password, name);
                    
                    if (status.Completed != null)
                        break;
                }
                
                return name;
            }
        

Foundation Technology documentation overview

Skip Navigation Links
Request handled by server S2-DC1 for client 23.20.196.179 at 26/05/2013 00:46:47