The Workflow Store web service provides methods for creating, retrieving and updating workflow definitions that
identify the data cleansing services to apply. The web service definition is available at
https://webservices.data-8.co.uk/batch/v1.0/workflowstore.asmx.
A large number of data cleansing services are available via Foundation Technology, all of which provide value to different
people. You may choose that you want to process your data against all the available services in order to retrieve a comprehensive
audit of your data quality, or you may choose to only process against the services you know you are interested in in order to get
your cleansed data back quicker.
Each workflow definition must be given a unique name to allow it to be referenced when using it to start a new job.
The following code illustrates how to configure the workflow definition for a workflow to
perform telephone number appending and TPS screening.
/// <summary>
/// Defines the name to use for the workflow definition.
/// </summary>
private const string WORKFLOW_NAME = "TeleAppendTPS";
/// <summary>
/// Checks if the workflow definition exists, and creates it if it is missing.
/// </summary>
private void ConfigureWorkflow()
{
// Check if the workflow already exists.
WorkflowStore proxy = new WorkflowStore();
Workflow workflow = proxy.GetWorkflowDetails(Username, Password, WORKFLOW_NAME);
if (workflow == null)
{
// Workflow is not defined - create it.
workflow = new Workflow();
workflow.Name = WORKFLOW_NAME;
workflow.TelNoAppendOSIS = true;
workflow.TPSExisting = true;
workflow.TPSOSIS = true;
proxy.UpdateWorkflow(Username, Password, workflow);
}
}