span8
span4
span8
span4
This article is part of a series: Subscribe, Report and Notify: Tutorial (2014)
Navigate: < 1. Database-Backed Subscriptions | 3. Subscribe and Unsubscribe >
The workspaces and data used in the tutorial are available for download from GitHub.
Subscribing to topics is a nice start, but doesn’t utilize FME’s core competency of spatial data handling. In most cases subscriptions will have a set of business rules that determine when the a device/user will notified, which in our case will be spatial in nature. The most basic rule is a test to see if an incoming message is located within a geofence.
To avoid confusion over which notifications are coming from which workspace, open the Web User Interface and remove the 1_processs_messages.fmw workspace. You could alternatively remove the subscription in the Notification > Subscription page, leaving the workspace on FME Server.
Run the workspace to create a table called subscription_database.
This creates a spatial database with three different email addresses subscribed to three different topics in specific geographic regions (in this case different continents). Again, manually editing this database is easy enough for static or low numbers of subscriptions.
Publish the workspace to FME Server
Click Publish
Now you have a configuration that will:
send an email notification to the subscribed email addresses.
Since there is no subscription to both the nature_news topic AND an area that covers Canada, no notification will be sent.
Now you have a created a simple system for managing subscriptions to topics and geographic areas using a database.
Sending email, Part 1: Setting up a topic and an email subscriber (2015)
Receiving email, Part 1: Setting up a topic and an email address (2015)
Receiving email, Part 2: Processing email with a workspace (2015)
Sending email, Part 3: Sending an email when a workspace completes (2015)
Receiving email, Part 3: Using email attachments (2015)
Intro to Notification Service: Receiving, Inspecting and Processing Notification Messages
Subscribe, Report and Notify Tutorial - 1. Database-Backed Subscriptions (2014)
Subscribe, Report and Notify: 3. Subscribe and Unsubscribe
Workspace notifications, Part 2: Configuring the default subscribers (2014)
Subscribe, Report and Notify Tutorial - 0. Basics of Notifications (2014)
© 2019 Safe Software Inc | Legal