Workflow WFS Configuration

The following steps outline how this is done.

Create the WFS Workflow Connection

The first task is to configure Workflow to point to the WFS feed. With the Workflow node selected in Studio right click and select Add DataSource from the context menu. You will see the following dialog:

Select the WFS Connection Type and click OK.

If WFS does not appear as an option then you will need to edit the ConTypes.xml file. See the topic Add the WFS Connection Type for details.

Name

Enter a name for your WFS Workflow connection e.g. County WFS.

Server

Here you need to paste in the URL to the WFS feed.

 

Click Save to save your new connection details.

Create Job to Refresh the WFS data

In order that the WFS data is kept up-to-date you need to create a Workflow Job to run the tasks required to Import the data and schedule it for a time to suit.

To do this you will need to add a Job entry. Right click on the Jobs node in the tree and select New Job.

Job Name

Enter a unique name for your job e.g. Refresh Childrens Centres.

Create a Task to Import the WFS data

We need to create a Workflow Task to import the WFS data into the PostgreSQL database. Right click on the Tasks node in the tree and select New Task. We need to specify Spatial Data Transformation as the task type and click OK.

Task Name

Enter a Name for the task.  In the above example we have chosen ccc- ChildrensCentres

Source Data

Here you need to select the WFS Workflow Connection you have just created.

Table

Now we need to select the table that we wish to import into the PostgreSQL database from the list e.g. ChildrensCentres

Output

In this instance will want to output to the PostgreSQL database so select PG Datashare.

Table

Now you need to enter a name for the Table that you wish to create in the PostgreSQL database.

 

Click Save to update the Studio with your changes.

Import the WFS Data

Right Click on the Task you have just created and select Run Task ccc- ChildrensCentres or whatever you have called it.

This will import the WFS feed into the selected table.

You may wish to repeat this process for other data sets.

Schedule the Job

Although we have run the Task to Import the data we need to schedule the Job to keep this data up-to-date. Simply select the Refresh Childrens Centres Job in the tree and add a schedule.

For more information on how to schedule a job please refer to the Job Scheduler topic.