Exercise 1 Shape Dataset Processing
Data Orthophoto images (GeoTIFF)
Overall Goal Trigger notification for new files
Demonstrates Notification topics and Directory Watch publications
Start Workspace N/A
End Workspace N/A

As a technical analyst in the GIS department you want to start trying out notifications. The Directory Watch protocol seems like a good place to start, and you already were thinking about a shared folder where users occasionally put Shape datasets for adding to the corporate database.


1) Create Resources Folder
The first step is to create a Resources folder to copy the data to. Open the FME Server web interface and navigate to Manage > Resources

Browse to the Data folder and create a new sub-folder called ShapeContours:


2) Create Topic
Now to create a publication and topic that will be triggered by a new file. Navigate to Manage > Notifications, click the Publications tab, and then click the New button.

Enter "Incoming Shape Datasets" as the new publication's name. Then click in the text box under Topics to Publish To. Type in ShapeIncomingFile and click on "Click to Add". This will create a new topic and assign it to this publication.


3) Create Publication
Now select Directory Watch as the protocol for this publication. In the dialog that opens below select the newly created resources folder:

Under the Filter setting, remove the Modify and Delete actions. All we really want to monitor are new files arriving, not old ones being removed:

Click OK to create the new publication.


4) Monitor Topic
Click on the tab for Topic Monitoring. Add the ShapeIncomingFile topic to the list being monitored:


5) Test Topic
Now let's test the topic. Locate the source Shape datasets in C:\FMEData2016\Data\ElevationModel\Contours - select a set of Shape files (.dbf, .prj, .shp, .shx) and create a zip file out of them.

Copy the zip file into the newly created Resources folder. You can do this through the file system (by copying the file to C:\ProgramData\Safe Software\FME Server\resources\data\ShapeContours) or using the web interface. If you use the web interface, open a new window or tab, so as not to stop the topic monitoring.

Check back in the topic monitoring window and you will see that the topic has been triggered by the new file:

So now we know how the Directory Watch notification works. For now you can put this project to one side - but come back to it later when you've learned how to process this information.


CONGRATULATIONS
By completing this exercise you have learned how to:
  • Create a new Publication
  • Create a new Topic as part of the Create Publication process
  • Use Directory Watch to trigger topics/notifications
  • Test a publication/topic using Topic Monitoring

results matching ""

    No results matching ""