Exercise 3 | Orthophoto Notification System |
Data | Orthophoto images (GeoTIFF) |
Overall Goal | Provide email-driven access to orthophoto files |
Demonstrates | Running a workspace in response to a notification |
Start Workspace | None |
End Workspace | C:\FMEData2016\Workspaces\ServerAuthoring\Notifications-Ex3-Complete.fmw |
As a technical analyst in the GIS department a recent project involved setting up a Data Download solution for users to serve orthophoto data to themselves. Having read up about notifications in FME Server, you think that it should also be possible to set up a system that uses email-based automation.
So far you have set up a system for incoming email notifications to be registered by FME Server. Now you must create a workspace to process these and publish it to FME Server. The workspace must then be triggered by a notification topic.
Miss Vector says... |
This exercise continues where exercise 2 left off. You must have completed exercise 2 to carry out this exercise. |
1) Create Workspace
Start FME Workbench and begin with an empty workspace. Simply add a Creator and Logger transformer:
This will give us a workspace to run in response to an email; albeit one that doesn’t do much yet. We're just creating this to check that we can get the setup to work.
2) Save and Publish Workspace
Save the workspace and publish it to FME Server. We only need it to be run (not do anything special) so register it only with the Job Submitter service.
3) Create Subscription
Return to the FME Server web interface and navigate to the Notifications page. Click on the Subscriptions tab and click New to create a new Subscription.
Call the subscription "Process Images Request". Subscribe to the topic ImagesIncomingRequest:
Now set the protocol to Workspace and select the workspace uploaded in the previous step:
Click OK to create the subscription. This will cause the workspace to run every time an incoming email triggers the ImagesIncomingRequest topic.
4) Test Subscription
Test the subscription by sending an email to the existing publication's email address.
This time, instead of monitoring the topic (although it will appear there again), check the Jobs page. You should see that the workspace has been run in response to the email:
This proves that the workspace has run.
Ms Analyst says... |
Again, in a training course more than one student might be using the IMAP account [email protected], so don't be surprised by multiple job results! Also, if you're using your own personal email account, any email you receive is going to trigger the workspace, so you too should not be surprised by multiple job results. |
CONGRATULATIONS |
By completing this exercise you have learned how to:
|